diff options
author | Vladimir Menshakov | 2011-06-13 14:35:48 +0400 |
---|---|---|
committer | Alyssa Milburn | 2011-06-15 17:34:42 +0200 |
commit | cf6b88b174d7f81a38beaa5b8420b71649e0747a (patch) | |
tree | 5d9af403616f33b502067dfa912a8fd116e03f70 | |
parent | 167d401ad70868479613e3f8a2d66e8667c5f4c4 (diff) | |
download | scummvm-rg350-cf6b88b174d7f81a38beaa5b8420b71649e0747a.tar.gz scummvm-rg350-cf6b88b174d7f81a38beaa5b8420b71649e0747a.tar.bz2 scummvm-rg350-cf6b88b174d7f81a38beaa5b8420b71649e0747a.zip |
DREAMWEB: report uppercased letters to the code
-rw-r--r-- | engines/dreamweb/dreamweb.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/dreamweb/dreamweb.cpp b/engines/dreamweb/dreamweb.cpp index 6bf0fff665..8b0d710301 100644 --- a/engines/dreamweb/dreamweb.cpp +++ b/engines/dreamweb/dreamweb.cpp @@ -245,6 +245,8 @@ uint DreamWebEngine::readFromSaveFile(uint8 *data, uint size) { void DreamWebEngine::keyPressed(uint16 ascii) { + if (ascii >= 'a' && ascii <= 'z') + ascii = (ascii - 'a') + 'A'; debug(1, "key pressed = %04x", ascii); uint8* keybuf = _context.data.ptr(5715, 16); //fixme: some hardcoded offsets are not added as consts uint16 in = (_context.data.word(dreamgen::kBufferin) + 1) % 0x0f; |