Added missing developer keys for height and width

git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@312 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
markgrebe 2004-07-14 06:54:53 +00:00
parent db2cfb8963
commit 21cd37170b
5 changed files with 53 additions and 3 deletions

View File

@ -4,7 +4,7 @@
Mark Grebe <atarimac@cox.net> Mark Grebe <atarimac@cox.net>
*/ */
/* $Id: Menus.h,v 1.1.1.1 2004-06-16 02:30:30 markgrebe Exp $ */ /* $Id: Menus.h,v 1.2 2004-07-14 06:54:17 markgrebe Exp $ */
#import <Cocoa/Cocoa.h> #import <Cocoa/Cocoa.h>
@ -43,5 +43,9 @@
- (IBAction)xStartMinus:(id)sender; - (IBAction)xStartMinus:(id)sender;
- (IBAction)yStartPlus:(id)sender; - (IBAction)yStartPlus:(id)sender;
- (IBAction)yStartMinus:(id)sender; - (IBAction)yStartMinus:(id)sender;
- (IBAction)widthPlus:(id)sender;
- (IBAction)widthMinus:(id)sender;
- (IBAction)heightPlus:(id)sender;
- (IBAction)heightMinus:(id)sender;
@end @end

View File

@ -4,7 +4,7 @@
Mark Grebe <atarimac@cox.net> Mark Grebe <atarimac@cox.net>
*/ */
/* $Id: Menus.m,v 1.1.1.1 2004-06-16 02:30:30 markgrebe Exp $ */ /* $Id: Menus.m,v 1.2 2004-07-14 06:54:17 markgrebe Exp $ */
#import <Cocoa/Cocoa.h> #import <Cocoa/Cocoa.h>
#import "Menus.h" #import "Menus.h"
@ -278,6 +278,26 @@ static Menus *sharedInstance = nil;
[self pushKeyEvent:SDLK_PAGEDOWN:NO]; [self pushKeyEvent:SDLK_PAGEDOWN:NO];
} }
- (IBAction)widthPlus:(id)sender
{
[self pushKeyEvent:SDLK_END:YES];
}
- (IBAction)widthMinus:(id)sender
{
[self pushKeyEvent:SDLK_HOME:YES];
}
- (IBAction)heightPlus:(id)sender
{
[self pushKeyEvent:SDLK_PAGEUP:YES];
}
- (IBAction)heightMinus:(id)sender
{
[self pushKeyEvent:SDLK_PAGEDOWN:YES];
}
- (BOOL)validateMenuItem:(id <NSMenuItem>)menuItem - (BOOL)validateMenuItem:(id <NSMenuItem>)menuItem
{ {
if (gameMenusEnabled) { if (gameMenusEnabled) {

View File

@ -13,6 +13,8 @@
biggerScreen = id; biggerScreen = id;
fullScreen = id; fullScreen = id;
grabMouse = id; grabMouse = id;
heightMinus = id;
heightPlus = id;
leftJoyChange = id; leftJoyChange = id;
ntscPalMode = id; ntscPalMode = id;
openCart = id; openCart = id;
@ -25,6 +27,8 @@
speedLimit = id; speedLimit = id;
toggleGlFilter = id; toggleGlFilter = id;
togglePallette = id; togglePallette = id;
widthMinus = id;
widthPlus = id;
xStartMinus = id; xStartMinus = id;
xStartPlus = id; xStartPlus = id;
yStartMinus = id; yStartMinus = id;

Binary file not shown.

View File

@ -13,7 +13,7 @@
// See the file "license" for information on usage and redistribution of // See the file "license" for information on usage and redistribution of
// this file, and for a DISCLAIMER OF ALL WARRANTIES. // this file, and for a DISCLAIMER OF ALL WARRANTIES.
// //
// $Id: mainSDL.cxx,v 1.2 2004-07-10 13:20:36 stephena Exp $ // $Id: mainSDL.cxx,v 1.3 2004-07-14 06:54:17 markgrebe Exp $
//============================================================================ //============================================================================
#include <fstream> #include <fstream>
@ -469,6 +469,28 @@ void handleEvents()
theConsole->toggleFormat(); theConsole->toggleFormat();
theDisplay->setupPalette(); theDisplay->setupPalette();
} }
#ifdef DEVELOPER_SUPPORT
else if(key == SDLK_END) // Command-Shift-End increases Width
{
theConsole->changeWidth(1);
theDisplay->resize(0);
}
else if(key == SDLK_HOME) // Command-Shift-Home decreases Width
{
theConsole->changeWidth(0);
theDisplay->resize(0);
}
else if(key == SDLK_PAGEUP) // Command-Shift-PageUp increases Height
{
theConsole->changeHeight(1);
theDisplay->resize(0);
}
else if(key == SDLK_PAGEDOWN) // Command-Shift-PageDown decreases Height
{
theConsole->changeHeight(0);
theDisplay->resize(0);
}
#endif
} }
else if((mod & KMOD_META) && !(mod & KMOD_SHIFT)) else if((mod & KMOD_META) && !(mod & KMOD_SHIFT))
{ {