Open main menu

Difference between revisions of "Keymapper"

9 bytes removed ,  10:23, 18 July 2020
m
no edit summary
m
m
Line 89: Line 89:
while (_system->getEventManager()->pollEvent(event)) {
while (_system->getEventManager()->pollEvent(event)) {
switch (event.type) {
switch (event.type) {
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;
}
}
}
}
}
}