Difference between revisions of "Keymapper"

Jump to navigation Jump to search
9 bytes removed ,  10:22, 18 July 2020
m
no edit summary
(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:
case Common::EVENT_KEYDOWN:
switch (event.kbd.keycode) {
switch (event.kbd.keycode) {
case Common::KEYCODE_t:
case Common::KEYCODE_t:
doTalk();
doTalk();
break;
break;
case Common::KEYCODE_u:
case Common::KEYCODE_u:
doUse();
doUse();
break;
break;
}
}
}
}
}
}

Navigation menu