1,554
edits
(Fix code formatting) |
m |
||
Line 42: | Line 42: | ||
while (_system->getEventManager()->pollEvent(event)) { | while (_system->getEventManager()->pollEvent(event)) { | ||
switch (event.type) { | switch (event.type) { | ||
case Common::EVENT_KEYDOWN: | |||
switch (event.kbd.keycode) { | |||
case Common::KEYCODE_t: | |||
doTalk(); | |||
break; | |||
case Common::KEYCODE_u: | |||
doUse(); | |||
break; | |||
} | |||
} | } | ||
} | } |