[Scummvm-cvs-logs] SF.net SVN: scummvm:[50539] scummvm/branches/gsoc2010-opengl/backends/ events/linuxmotosdl/linuxmotosdl-events.cpp
vgvgf at users.sourceforge.net
vgvgf at users.sourceforge.net
Wed Jun 30 21:30:37 CEST 2010
Revision: 50539
http://scummvm.svn.sourceforge.net/scummvm/?rev=50539&view=rev
Author: vgvgf
Date: 2010-06-30 19:30:36 +0000 (Wed, 30 Jun 2010)
Log Message:
-----------
Removed static mapKey function.
Modified Paths:
--------------
scummvm/branches/gsoc2010-opengl/backends/events/linuxmotosdl/linuxmotosdl-events.cpp
Modified: scummvm/branches/gsoc2010-opengl/backends/events/linuxmotosdl/linuxmotosdl-events.cpp
===================================================================
--- scummvm/branches/gsoc2010-opengl/backends/events/linuxmotosdl/linuxmotosdl-events.cpp 2010-06-30 17:47:44 UTC (rev 50538)
+++ scummvm/branches/gsoc2010-opengl/backends/events/linuxmotosdl/linuxmotosdl-events.cpp 2010-06-30 19:30:36 UTC (rev 50539)
@@ -64,23 +64,6 @@
}
}
-static int mapKey(SDLKey key, SDLMod mod, Uint16 unicode) {
- if (key >= SDLK_F1 && key <= SDLK_F9) {
- return key - SDLK_F1 + Common::ASCII_F1;
- } else if (key >= SDLK_KP0 && key <= SDLK_KP9) {
- return key - SDLK_KP0 + '0';
- } else if (key >= SDLK_UP && key <= SDLK_PAGEDOWN) {
- return key;
- } else if (unicode) {
- return unicode;
- } else if (key >= 'a' && key <= 'z' && (mod & KMOD_SHIFT)) {
- return key & ~0x20;
- } else if (key >= SDLK_NUMLOCK && key <= SDLK_EURO) {
- return 0;
- }
- return key;
-}
-
bool LinuxmotoSdlEventManager::remapKey(SDL_Event &ev, Common::Event &event) {
if (false) {}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list