[Scummvm-cvs-logs] SF.net SVN: scummvm:[40501] scummvm/trunk/common/keyboard.h
sev at users.sourceforge.net
sev at users.sourceforge.net
Tue May 12 21:03:42 CEST 2009
Revision: 40501
http://scummvm.svn.sourceforge.net/scummvm/?rev=40501&view=rev
Author: sev
Date: 2009-05-12 19:03:42 +0000 (Tue, 12 May 2009)
Log Message:
-----------
Allow creation of KeyState with zero ascii value.
Modified Paths:
--------------
scummvm/trunk/common/keyboard.h
Modified: scummvm/trunk/common/keyboard.h
===================================================================
--- scummvm/trunk/common/keyboard.h 2009-05-12 19:00:24 UTC (rev 40500)
+++ scummvm/trunk/common/keyboard.h 2009-05-12 19:03:42 UTC (rev 40501)
@@ -249,9 +249,15 @@
*/
byte flags;
- KeyState(KeyCode kc = KEYCODE_INVALID, uint16 asc = 0, byte f = 0) {
+ KeyState(KeyCode kc = KEYCODE_INVALID) {
keycode = kc;
- ascii = asc ? asc : (uint16)kc;
+ ascii = (uint16)kc;
+ flags = 0;
+ }
+
+ KeyState(KeyCode kc, uint16 asc, byte f = 0) {
+ keycode = kc;
+ ascii = asc;
flags = f;
}
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