diff options
| author | Norbert Lange | 2009-08-08 19:09:30 +0000 | 
|---|---|---|
| committer | Norbert Lange | 2009-08-08 19:09:30 +0000 | 
| commit | 0350a1598deea8d1af252ddd96a490699d10e2e2 (patch) | |
| tree | 11557d7a87ee5da2ee20e6c13e8be7d2607f393c /backends/platform/gp2x/events.cpp | |
| parent | df06592be1b4c9904acde5a843d3ab3d076c65ac (diff) | |
| parent | 65a39cc2b0ebb989444330c561743ba0466c1a9c (diff) | |
| download | scummvm-rg350-0350a1598deea8d1af252ddd96a490699d10e2e2.tar.gz scummvm-rg350-0350a1598deea8d1af252ddd96a490699d10e2e2.tar.bz2 scummvm-rg350-0350a1598deea8d1af252ddd96a490699d10e2e2.zip | |
merge with trunk
svn-id: r43134
Diffstat (limited to 'backends/platform/gp2x/events.cpp')
| -rw-r--r-- | backends/platform/gp2x/events.cpp | 31 | 
1 files changed, 12 insertions, 19 deletions
| diff --git a/backends/platform/gp2x/events.cpp b/backends/platform/gp2x/events.cpp index 9a9a59765d..8cd034d2d5 100644 --- a/backends/platform/gp2x/events.cpp +++ b/backends/platform/gp2x/events.cpp @@ -35,7 +35,7 @@  #include "common/events.h"  // FIXME move joystick defines out and replace with confile file options -// we should really allow users to map any key to a joystick button +// we should really allow users to map any key to a joystick button using the keymapper.  #define JOY_DEADZONE 2200  #define JOY_XAXIS 0 @@ -273,7 +273,7 @@ bool OSystem_GP2X::pollEvent(Common::Event &event) {  	Combos: -	GP2X_BUTTON_VOLUP &	GP2X_BUTTON_VOLDOWN		0 (For Monkey 2 CP) +	GP2X_BUTTON_VOLUP &	GP2X_BUTTON_VOLDOWN		0 (For Monkey 2 CP) or Virtual Keyboard if enabled  	GP2X_BUTTON_L &	GP2X_BUTTON_SELECT			Common::EVENT_QUIT (Calls Sync() to make sure SD is flushed)  	GP2X_BUTTON_L &	GP2X_BUTTON_Y				Toggles setZoomOnMouse() for larger then 320*240 games to scale to the point + raduis.  	GP2X_BUTTON_L &	GP2X_BUTTON_START			Common::EVENT_MAINMENU (ScummVM Global Main Menu) @@ -434,29 +434,22 @@ bool OSystem_GP2X::pollEvent(Common::Event &event) {  						}  						break;  					case GP2X_BUTTON_VOLUP: -						//if (GP2X_BUTTON_STATE_L == TRUE) { -						//	displayMessageOnOSD("Setting CPU Speed at 230MHz"); -						//	GP2X_setCpuspeed(200); -							//event.kbd.keycode = Common::KEYCODE_PLUS; -							//event.kbd.ascii = mapKey(SDLK_PLUS, ev.key.keysym.mod, 0); -						//} else { -							GP2X_mixer_move_volume(1); +						GP2X_HW::mixerMoveVolume(2); +						if (GP2X_HW::volumeLevel == 100) { +							displayMessageOnOSD("Maximum Volume"); +						} else {  							displayMessageOnOSD("Increasing Volume"); -						//} +						}  						break;  					case GP2X_BUTTON_VOLDOWN: -						//if (GP2X_BUTTON_STATE_L == TRUE) { -						//	displayMessageOnOSD("Setting CPU Speed at 60MHz"); -						//	GP2X_setCpuspeed(60); -							//event.kbd.keycode = Common::KEYCODE_MINUS; -							//event.kbd.ascii = mapKey(SDLK_MINUS, ev.key.keysym.mod, 0); -						//} else { -							GP2X_mixer_move_volume(0); +						GP2X_HW::mixerMoveVolume(1); +						if (GP2X_HW::volumeLevel == 0) { +							displayMessageOnOSD("Minimal Volume"); +						} else {  							displayMessageOnOSD("Decreasing Volume"); -						//} +						}  						break; -  				}  			}  			return true; | 
