diff options
| author | Max Horn | 2007-03-18 21:55:57 +0000 | 
|---|---|---|
| committer | Max Horn | 2007-03-18 21:55:57 +0000 | 
| commit | 995a4d7cff4338848142d43b48c218b75c4fdbcc (patch) | |
| tree | 5c79939df631bd4426e2b79af68da3036979d78d /backends | |
| parent | 0bc056aee3a32de9df83d1e12417a2ae7d854651 (diff) | |
| download | scummvm-rg350-995a4d7cff4338848142d43b48c218b75c4fdbcc.tar.gz scummvm-rg350-995a4d7cff4338848142d43b48c218b75c4fdbcc.tar.bz2 scummvm-rg350-995a4d7cff4338848142d43b48c218b75c4fdbcc.zip  | |
Some fixes to cope with the move of the event code from OSystem to Common
svn-id: r26233
Diffstat (limited to 'backends')
| -rw-r--r-- | backends/platform/ds/arm9/source/dsmain.cpp | 4 | ||||
| -rw-r--r-- | backends/platform/ps2/ps2input.cpp | 10 | ||||
| -rw-r--r-- | backends/platform/psp/osys_psp.cpp | 6 | ||||
| -rw-r--r-- | backends/platform/psp/osys_psp_gu.cpp | 2 | 
4 files changed, 11 insertions, 11 deletions
diff --git a/backends/platform/ds/arm9/source/dsmain.cpp b/backends/platform/ds/arm9/source/dsmain.cpp index 24063d81ce..1a3d4f7142 100644 --- a/backends/platform/ds/arm9/source/dsmain.cpp +++ b/backends/platform/ds/arm9/source/dsmain.cpp @@ -1111,13 +1111,13 @@ void addEventsToQueue() {  		if (!keyboardEnable) {  			if ((mouseMode != MOUSE_HOVER) || (!displayModeIs8Bit)) {  					if (getPenDown() && (!(getKeysHeld() & KEY_L)) && (!(getKeysHeld() & KEY_R))) {	 -						event.type = ((mouseMode == MOUSE_LEFT) || (!displayModeIs8Bit))? Common::EVENT_LBUTTONDOWN: OSystem::EVENT_RBUTTONDOWN; +						event.type = ((mouseMode == MOUSE_LEFT) || (!displayModeIs8Bit))? Common::EVENT_LBUTTONDOWN: Common::EVENT_RBUTTONDOWN;  						event.mouse = Common::Point(getPenX(), getPenY());  						system->addEvent(event);  					}  					if (getPenReleased()) { -						event.type = mouseMode == MOUSE_LEFT? Common::EVENT_LBUTTONUP: OSystem::EVENT_RBUTTONUP; +						event.type = mouseMode == MOUSE_LEFT? Common::EVENT_LBUTTONUP: Common::EVENT_RBUTTONUP;  						event.mouse = Common::Point(getPenX(), getPenY());  						system->addEvent(event);  					} diff --git a/backends/platform/ps2/ps2input.cpp b/backends/platform/ps2/ps2input.cpp index 5297b38747..1bb5206a9c 100644 --- a/backends/platform/ps2/ps2input.cpp +++ b/backends/platform/ps2/ps2input.cpp @@ -125,9 +125,9 @@ bool Ps2Input::pollEvent(Common::Event *event) {  			_mButtons = mData.buttons;  			if (change & (PS2MOUSE_BTN1 | PS2MOUSE_BTN2)) {  				if (change & PS2MOUSE_BTN1) -					event->type = (_mButtons & PS2MOUSE_BTN1) ? Common::EVENT_LBUTTONDOWN : OSystem::EVENT_LBUTTONUP; +					event->type = (_mButtons & PS2MOUSE_BTN1) ? Common::EVENT_LBUTTONDOWN : Common::EVENT_LBUTTONUP;  				else -					event->type = (_mButtons & PS2MOUSE_BTN2) ? Common::EVENT_RBUTTONDOWN : OSystem::EVENT_RBUTTONUP; +					event->type = (_mButtons & PS2MOUSE_BTN2) ? Common::EVENT_RBUTTONDOWN : Common::EVENT_RBUTTONUP;  				event->mouse.x = _posX;  				event->mouse.y = _posY;  				return true; @@ -177,9 +177,9 @@ bool Ps2Input::pollEvent(Common::Event *event) {  		if (checkPadMouse) {  			if (btnChange & (PAD_CROSS | PAD_CIRCLE)) {  				if (btnChange & PAD_CROSS) -					event->type = (buttons & PAD_CROSS) ?  Common::EVENT_LBUTTONDOWN : OSystem::EVENT_LBUTTONUP; +					event->type = (buttons & PAD_CROSS) ?  Common::EVENT_LBUTTONDOWN : Common::EVENT_LBUTTONUP;  				else -					event->type = (buttons & PAD_CIRCLE) ? Common::EVENT_RBUTTONDOWN : OSystem::EVENT_RBUTTONUP; +					event->type = (buttons & PAD_CIRCLE) ? Common::EVENT_RBUTTONDOWN : Common::EVENT_RBUTTONUP;  				event->mouse.x = _posX;  				event->mouse.y = _posY;  				_padLastButtons = buttons; @@ -238,7 +238,7 @@ bool Ps2Input::getKeyEvent(Common::Event *event, uint16 buttonCode, bool down) {  			buttonCode >>= 1;  		}  		if (_padCodes[entry]) { -			event->type = (down) ? Common::EVENT_KEYDOWN : OSystem::EVENT_KEYUP; +			event->type = (down) ? Common::EVENT_KEYDOWN : Common::EVENT_KEYUP;  			event->kbd.keycode = _padCodes[entry];  			event->kbd.flags = _padFlags[entry];  			event->kbd.ascii = mapKey(_padCodes[entry], _padFlags[entry]); diff --git a/backends/platform/psp/osys_psp.cpp b/backends/platform/psp/osys_psp.cpp index 88da6924b9..8d01d0cf6e 100644 --- a/backends/platform/psp/osys_psp.cpp +++ b/backends/platform/psp/osys_psp.cpp @@ -431,14 +431,14 @@ bool OSystem_PSP::pollEvent(Common::Event &event) {  	if (buttonsChanged & (PSP_CTRL_CROSS | PSP_CTRL_CIRCLE | PSP_CTRL_LTRIGGER | PSP_CTRL_RTRIGGER | PSP_CTRL_START | PSP_CTRL_SELECT | PSP_CTRL_SQUARE)) {  		if (buttonsChanged & PSP_CTRL_CROSS) { -			event.type = (pad.Buttons & PSP_CTRL_CROSS) ? Common::EVENT_LBUTTONDOWN : OSystem::EVENT_LBUTTONUP; +			event.type = (pad.Buttons & PSP_CTRL_CROSS) ? Common::EVENT_LBUTTONDOWN : Common::EVENT_LBUTTONUP;  		}  		else if (buttonsChanged & PSP_CTRL_CIRCLE) { -			event.type = (pad.Buttons & PSP_CTRL_CIRCLE) ? Common::EVENT_RBUTTONDOWN : OSystem::EVENT_RBUTTONUP; +			event.type = (pad.Buttons & PSP_CTRL_CIRCLE) ? Common::EVENT_RBUTTONDOWN : Common::EVENT_RBUTTONUP;  		}  		else {  			//any of the other buttons. -			event.type = buttonsChanged & pad.Buttons ? Common::EVENT_KEYDOWN : OSystem::EVENT_KEYUP; +			event.type = buttonsChanged & pad.Buttons ? Common::EVENT_KEYDOWN : Common::EVENT_KEYUP;  			event.kbd.flags = 0;  			if (buttonsChanged & PSP_CTRL_LTRIGGER) { diff --git a/backends/platform/psp/osys_psp_gu.cpp b/backends/platform/psp/osys_psp_gu.cpp index 871d93acba..b8d39c72ca 100644 --- a/backends/platform/psp/osys_psp_gu.cpp +++ b/backends/platform/psp/osys_psp_gu.cpp @@ -523,7 +523,7 @@ bool OSystem_PSP_GU::pollEvent(Common::Event &event) {  		_kbdClut[_keySelected] = 0xffff;  		if  (buttonsChanged & PSP_CTRL_CROSS) { -			event.type = (pad.Buttons & PSP_CTRL_CROSS) ? Common::EVENT_KEYDOWN : OSystem::EVENT_KEYUP; +			event.type = (pad.Buttons & PSP_CTRL_CROSS) ? Common::EVENT_KEYDOWN : Common::EVENT_KEYUP;  			if(_keySelected > 26) {  				event.kbd.flags = 0;  				switch(_keySelected) {  | 
