Cleanup event code

Added key up for mouse buttons so that we can control Gobliiins and Touche properly

svn-id: r25147
This commit is contained in:
Chris Apers 2007-01-21 14:15:35 +00:00
parent 0147a83180
commit dd03b8f84b
7 changed files with 79 additions and 107 deletions

View file

@ -51,8 +51,7 @@ OSystem_PalmBase::OSystem_PalmBase() {
_screenP = NULL;
_screenPitch = gVars->screenPitch;
_lastEvent = nilEvent;
_lastKey = kKeyNone;
_wasKey = false;
_lastKeyModifier = kModifierNone;
_lastKeyRepeat = 100;
_useNumPad = false;
@ -89,13 +88,11 @@ void OSystem_PalmBase::initBackend() {
_keyMouse.bitUp = keyBitPageUp;
_keyMouse.bitDown = keyBitPageDown;
_keyMouse.bitLeft = keyBitHard1;
_keyMouse.bitRight = keyBitHard2;
_keyMouse.bitButLeft= keyBitHard3;
_keyMouse.hasMore = false;
_keyMouse.bitLeft = keyBitHard2;
_keyMouse.bitRight = keyBitHard3;
int_initBackend();
_keyMouseMask = (_keyMouse.bitUp | _keyMouse.bitDown | _keyMouse.bitLeft | _keyMouse.bitRight | _keyMouse.bitButLeft);
_keyMouseMask = (_keyMouse.bitUp | _keyMouse.bitDown | _keyMouse.bitLeft | _keyMouse.bitRight);
// Create the savefile manager, if none exists yet (we check for this to
// allow subclasses to provide their own).