aboutsummaryrefslogtreecommitdiff
path: root/engines/sword1/control.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sword1/control.cpp')
-rw-r--r--engines/sword1/control.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sword1/control.cpp b/engines/sword1/control.cpp
index 63b86997ce..62dd0ecb6b 100644
--- a/engines/sword1/control.cpp
+++ b/engines/sword1/control.cpp
@@ -1047,7 +1047,7 @@ void Control::delay(uint32 msecs) {
case Common::EVENT_KEYDOWN:
// Make sure backspace works right (this fixes a small issue on OS X)
- if (event.kbd.keycode == 8)
+ if (event.kbd.keycode == Common::KEYCODE_BACKSPACE)
_keyPressed = 8;
else
_keyPressed = (byte)event.kbd.ascii;