1,554
edits
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: | |||
switch ((MyEngineAction)event.customType) { | |||
case kMyActionTalk: | |||
doTalk(); | |||
break; | |||
case kMyActionUse: | |||
doUse(); | |||
break; | |||
} | |||
} | } | ||
} | } |