[Scummvm-cvs-logs] SF.net SVN: scummvm: [27671] scummvm/trunk/engines/gob/util.cpp
fingolfin at users.sourceforge.net
fingolfin at users.sourceforge.net
Sat Jun 23 17:59:01 CEST 2007
Revision: 27671
http://scummvm.svn.sourceforge.net/scummvm/?rev=27671&view=rev
Author: fingolfin
Date: 2007-06-23 08:59:00 -0700 (Sat, 23 Jun 2007)
Log Message:
-----------
Added GOB FIXME
Modified Paths:
--------------
scummvm/trunk/engines/gob/util.cpp
Modified: scummvm/trunk/engines/gob/util.cpp
===================================================================
--- scummvm/trunk/engines/gob/util.cpp 2007-06-23 15:40:28 UTC (rev 27670)
+++ scummvm/trunk/engines/gob/util.cpp 2007-06-23 15:59:00 UTC (rev 27671)
@@ -165,15 +165,19 @@
}
int16 Util::translateKey(int16 key) {
+ // FIXME: This currently maps KeyState::ascii values, when
+ // it really should map keycodes! To fix this, addKeyToBuffer()
+ // will have to be called with kbd.keycode instead of kbd.ascii,
+ // and of course this will in turn require subsequent changes...
static struct keyS {
int16 from;
int16 to;
} keys[] = {
- {8, 0x0E08}, // Backspace
- {32, 0x3920}, // Space
- {13, 0x1C0D}, // Enter
- {27, 0x011B}, // ESC
- {127, 0x5300}, // Del
+ {Common::KEYCODE_BACKSPACE, 0x0E08}, // Backspace
+ {Common::KEYCODE_SPACE, 0x3920}, // Space
+ {Common::KEYCODE_RETURN, 0x1C0D}, // Enter
+ {Common::KEYCODE_ESCAPE, 0x011B}, // ESC
+ {Common::KEYCODE_DELETE, 0x5300}, // Del
{Common::KEYCODE_UP, 0x4800}, // Up arrow
{Common::KEYCODE_DOWN, 0x5000}, // Down arrow
{Common::KEYCODE_RIGHT, 0x4D00}, // Right arrow
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