[Scummvm-cvs-logs] CVS: scummvm/backends/wince/CEkeys EventsBuffer.cpp,1.3,1.4 EventsBuffer.h,1.3,1.4
Nicolas Bacca
arisme at users.sourceforge.net
Fri Jan 28 15:54:26 CET 2005
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/sword2/driver animation.cpp,1.52,1.53
- Next message: [Scummvm-cvs-logs] CVS: scummvm/backends/wince CEActionsPocket.cpp,1.7,1.8 CEActionsSmartphone.cpp,1.4,1.5 CEDevice.cpp,1.7,1.8 CEException.cpp,1.2,1.3 CEKeysDialog.cpp,1.3,1.4 wince-sdl.cpp,1.22,1.23
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/scummvm/scummvm/backends/wince/CEkeys
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29794/CEkeys
Modified Files:
EventsBuffer.cpp EventsBuffer.h
Log Message:
Update to latest branch fixes
Index: EventsBuffer.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/wince/CEkeys/EventsBuffer.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- EventsBuffer.cpp 1 Jan 2005 16:08:48 -0000 1.3
+++ EventsBuffer.cpp 28 Jan 2005 23:45:53 -0000 1.4
@@ -24,7 +24,7 @@
namespace CEKEYS {
- bool EventsBuffer::simulateKey(Key *key) {
+ bool EventsBuffer::simulateKey(Key *key, bool pushed) {
SDL_Event ev = {0};
if (!key->keycode())
@@ -33,13 +33,11 @@
if (!key->ascii())
key->setAscii(key->keycode());
- ev.type = SDL_KEYDOWN;
+ ev.type = (pushed ? SDL_KEYDOWN : SDL_KEYUP);
ev.key.keysym.mod = (SDLMod)key->flags();
ev.key.keysym.sym = (SDLKey)key->keycode();
ev.key.keysym.unicode = key->keycode();
- if (SDL_PushEvent(&ev))
- return false;
- ev.type = SDL_KEYUP;
+ ev.key.keysym.mod = KMOD_RESERVED;
return (SDL_PushEvent(&ev) == 0);
}
Index: EventsBuffer.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/wince/CEkeys/EventsBuffer.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- EventsBuffer.h 1 Jan 2005 16:08:48 -0000 1.3
+++ EventsBuffer.h 28 Jan 2005 23:45:53 -0000 1.4
@@ -35,7 +35,7 @@
class EventsBuffer {
public:
- static bool simulateKey(Key *key);
+ static bool simulateKey(Key *key, bool pushed);
static bool simulateMouseMove(int x, int y);
static bool simulateMouseLeftClick(int x, int y, bool pushed);
static bool simulateMouseRightClick(int x, int y, bool pushed);
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/sword2/driver animation.cpp,1.52,1.53
- Next message: [Scummvm-cvs-logs] CVS: scummvm/backends/wince CEActionsPocket.cpp,1.7,1.8 CEActionsSmartphone.cpp,1.4,1.5 CEDevice.cpp,1.7,1.8 CEException.cpp,1.2,1.3 CEKeysDialog.cpp,1.3,1.4 wince-sdl.cpp,1.22,1.23
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Scummvm-git-logs
mailing list