Open main menu

Difference between revisions of "Keymapper"

12 bytes removed ,  10:21, 18 July 2020
Fix code formatting
(Add an item to the TODO list)
(Fix code formatting)
Line 44: Line 44:
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;
}
}
}
}
Line 91: Line 91:
case Common::EVENT_CUSTOM_ENGINE_ACTION_START:
case Common::EVENT_CUSTOM_ENGINE_ACTION_START:
switch ((MyEngineAction)event.customType) {
switch ((MyEngineAction)event.customType) {
case kMyActionTalk:
case kMyActionTalk:
doTalk();
doTalk();
break;
break;
case kMyActionUse:
case kMyActionUse:
doUse();
doUse();
break;
break;
}
}
}
}