KEYMAPPER: Change custom backend action events not to be instant

Allows action consumers to choose if they want to react on the start or
on the end of an user interaction.
This commit is contained in:
Bastien Bouclet 2020-01-24 14:08:16 +01:00
parent 2d7588d9c3
commit cc336635a1
6 changed files with 23 additions and 14 deletions

View file

@ -204,7 +204,7 @@ Common::Keymap *OSystem_SDL_Maemo::getGlobalKeymap() {
act = new Action("CLKM", _("Click Mode"));
Event evt = Event();
evt.type = EVENT_CUSTOM_BACKEND_ACTION;
evt.type = EVENT_CUSTOM_BACKEND_ACTION_START;
evt.customType = Maemo::kEventClickMode;
act->setEvent(evt);
globalMap->addAction(act);