aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/sdl
diff options
context:
space:
mode:
authorJody Northup2009-08-16 07:40:13 +0000
committerJody Northup2009-08-16 07:40:13 +0000
commitcbffcb609f752edcc3f086521c9e0c75b5ee4cc4 (patch)
treee212df62509a74330dd231bd652cc9ff583c5fb5 /backends/platform/sdl
parent43d57fd333afa54f4e85f30e2ef8231444988066 (diff)
downloadscummvm-rg350-cbffcb609f752edcc3f086521c9e0c75b5ee4cc4.tar.gz
scummvm-rg350-cbffcb609f752edcc3f086521c9e0c75b5ee4cc4.tar.bz2
scummvm-rg350-cbffcb609f752edcc3f086521c9e0c75b5ee4cc4.zip
Replaced KeyStates with ActionKeys in the keymapper, removed SDL ASCII code mismatch workaround hacks, fixed the memory leaks I had previously created.
svn-id: r43430
Diffstat (limited to 'backends/platform/sdl')
-rw-r--r--backends/platform/sdl/hardwarekeys.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/backends/platform/sdl/hardwarekeys.cpp b/backends/platform/sdl/hardwarekeys.cpp
index 506e71d092..af9b0ba319 100644
--- a/backends/platform/sdl/hardwarekeys.cpp
+++ b/backends/platform/sdl/hardwarekeys.cpp
@@ -227,7 +227,7 @@ Common::HardwareKeySet *OSystem_SDL::getHardwareKeySet() {
snprintf(fullKeyId, 50, "%s", key->hwId);
snprintf(fullKeyDesc, 100, "%s", key->desc);
- keySet->addHardwareKey(new HardwareKey(fullKeyId, KeyState(key->keycode, ascii, 0), fullKeyDesc, key->modableMask, key->preferredAction));
+ keySet->addHardwareKey(new HardwareKey(fullKeyId, ActionKey(key->keycode, 0), fullKeyDesc, key->modableMask, key->preferredAction));
}
keySetInited = true;