From d1ef4021bc320cf1a328e58fabfbf4da60c1468e Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sun, 3 Jul 2011 20:20:16 +1000 Subject: CGE: Bugfix for keyboard entry --- engines/cge/events.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines') diff --git a/engines/cge/events.cpp b/engines/cge/events.cpp index 97385c3ae1..5f98cf34fb 100644 --- a/engines/cge/events.cpp +++ b/engines/cge/events.cpp @@ -126,8 +126,8 @@ void Keyboard::NewKeyboard(Common::Event &event) { _key[event.kbd.keycode] = false; } else if (event.type == Common::EVENT_KEYDOWN) { // Key press - _key[event.kbd.keycode] = true; - _current = Keyboard::_code[event.kbd.keycode]; + _key[keycode] = true; + _current = Keyboard::_code[keycode]; if (_client) { CGEEvent &evt = Evt[EvtHead]; -- cgit v1.2.3