[Scummvm-cvs-logs] scummvm master -> 6df53857f94ceab82598529fb6e6ca5db1ebc37e
digitall
dgturner at iee.org
Thu Nov 29 05:08:41 CET 2012
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
6df53857f9 DREAMWEB: Add debugging output for keyboard input.
Commit: 6df53857f94ceab82598529fb6e6ca5db1ebc37e
https://github.com/scummvm/scummvm/commit/6df53857f94ceab82598529fb6e6ca5db1ebc37e
Author: D G Turner (digitall at scummvm.org)
Date: 2012-11-28T20:07:05-08:00
Commit Message:
DREAMWEB: Add debugging output for keyboard input.
Changed paths:
engines/dreamweb/dreamweb.cpp
diff --git a/engines/dreamweb/dreamweb.cpp b/engines/dreamweb/dreamweb.cpp
index 65df466..d65da8b 100644
--- a/engines/dreamweb/dreamweb.cpp
+++ b/engines/dreamweb/dreamweb.cpp
@@ -331,8 +331,9 @@ void DreamWebEngine::processEvents() {
softKey = 0;
+ debug(1, "DreamWebEngine::processEvents() KeyDown keycode:%d ascii:0x%02x", event.kbd.keycode, event.kbd.ascii);
if (event.kbd.keycode >= Common::KEYCODE_a && event.kbd.keycode <= Common::KEYCODE_z) {
- softKey = event.kbd.ascii & ~0x20;
+ softKey = event.kbd.ascii & ~0x20; // (& ~0x20) forces ascii codes for a-z to map to A-Z
} else if (event.kbd.keycode == Common::KEYCODE_MINUS ||
event.kbd.keycode == Common::KEYCODE_SPACE ||
(event.kbd.keycode >= Common::KEYCODE_0 && event.kbd.keycode <= Common::KEYCODE_9)) {
More information about the Scummvm-git-logs
mailing list