[Scummvm-cvs-logs] SF.net SVN: scummvm: [26540] scummvm/trunk/engines/gob/util.cpp
drmccoy at users.sourceforge.net
drmccoy at users.sourceforge.net
Tue Apr 17 09:19:24 CEST 2007
Revision: 26540
http://scummvm.svn.sourceforge.net/scummvm/?rev=26540&view=rev
Author: drmccoy
Date: 2007-04-17 00:19:23 -0700 (Tue, 17 Apr 2007)
Log Message:
-----------
Changed processInput() to use the ascii value instead of the keycode, so that upper-case characters work
Modified Paths:
--------------
scummvm/trunk/engines/gob/util.cpp
Modified: scummvm/trunk/engines/gob/util.cpp
===================================================================
--- scummvm/trunk/engines/gob/util.cpp 2007-04-17 05:57:17 UTC (rev 26539)
+++ scummvm/trunk/engines/gob/util.cpp 2007-04-17 07:19:23 UTC (rev 26540)
@@ -112,7 +112,7 @@
_fastMode ^= 2;
break;
}
- addKeyToBuffer(event.kbd.keycode);
+ addKeyToBuffer(event.kbd.ascii);
break;
case Common::EVENT_KEYUP:
break;
@@ -171,16 +171,16 @@
{274, 0x5000}, // Down arrow
{275, 0x4D00}, // Right arrow
{276, 0x4B00}, // Left arrow
- {282, 0x3B00}, // F1
- {283, 0x3C00}, // F2
- {284, 0x3D00}, // F3
- {285, 0x3E00}, // F4
- {286, 0x011B}, // F5
- {287, 0x4000}, // F6
- {288, 0x4100}, // F7
- {289, 0x4200}, // F8
- {290, 0x4300}, // F9
- {291, 0x4400} // F10
+ {315, 0x3B00}, // F1
+ {316, 0x3C00}, // F2
+ {317, 0x3D00}, // F3
+ {318, 0x3E00}, // F4
+ {319, 0x011B}, // F5
+ {320, 0x4000}, // F6
+ {321, 0x4100}, // F7
+ {322, 0x4200}, // F8
+ {323, 0x4300}, // F9
+ {324, 0x4400} // F10
};
for (int i = 0; i < ARRAYSIZE(keys); i++)
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