mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-04-10 19:15:13 +00:00
we map to pageup/pagedown not leftbottom/rightbottom - fixes page up / down buttons in date input etc
This commit is contained in:
parent
61a493c38a
commit
0a7605cae1
|
@ -287,8 +287,8 @@ void InputManager::loadDefaultKBConfig()
|
||||||
cfg->mapInput("start", Input(DEVICE_KEYBOARD, TYPE_KEY, SDLK_F1, 1, true));
|
cfg->mapInput("start", Input(DEVICE_KEYBOARD, TYPE_KEY, SDLK_F1, 1, true));
|
||||||
cfg->mapInput("select", Input(DEVICE_KEYBOARD, TYPE_KEY, SDLK_F2, 1, true));
|
cfg->mapInput("select", Input(DEVICE_KEYBOARD, TYPE_KEY, SDLK_F2, 1, true));
|
||||||
|
|
||||||
cfg->mapInput("leftbottom", Input(DEVICE_KEYBOARD, TYPE_KEY, SDLK_RIGHTBRACKET, 1, true));
|
cfg->mapInput("pageup", Input(DEVICE_KEYBOARD, TYPE_KEY, SDLK_RIGHTBRACKET, 1, true));
|
||||||
cfg->mapInput("rightbottom", Input(DEVICE_KEYBOARD, TYPE_KEY, SDLK_LEFTBRACKET, 1, true));
|
cfg->mapInput("pagedown", Input(DEVICE_KEYBOARD, TYPE_KEY, SDLK_LEFTBRACKET, 1, true));
|
||||||
}
|
}
|
||||||
|
|
||||||
void InputManager::writeDeviceConfig(InputConfig* config)
|
void InputManager::writeDeviceConfig(InputConfig* config)
|
||||||
|
|
|
@ -81,10 +81,10 @@ bool ComponentList::input(InputConfig* config, Input input)
|
||||||
}else if(config->isMappedTo("down", input))
|
}else if(config->isMappedTo("down", input))
|
||||||
{
|
{
|
||||||
return listInput(input.value != 0 ? 1 : 0);
|
return listInput(input.value != 0 ? 1 : 0);
|
||||||
}else if(config->isMappedTo("leftbottom", input))
|
}else if(config->isMappedTo("pageup", input))
|
||||||
{
|
{
|
||||||
return listInput(input.value != 0 ? -7 : 0);
|
return listInput(input.value != 0 ? -7 : 0);
|
||||||
}else if(config->isMappedTo("rightbottom", input)){
|
}else if(config->isMappedTo("pagedown", input)){
|
||||||
return listInput(input.value != 0 ? 7 : 0);
|
return listInput(input.value != 0 ? 7 : 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -54,9 +54,9 @@ bool DateTimeComponent::input(InputConfig* config, Input input)
|
||||||
}
|
}
|
||||||
|
|
||||||
int incDir = 0;
|
int incDir = 0;
|
||||||
if(config->isMappedTo("up", input) || config->isMappedTo("leftbottom", input))
|
if(config->isMappedTo("up", input) || config->isMappedTo("pageup", input))
|
||||||
incDir = 1;
|
incDir = 1;
|
||||||
else if(config->isMappedTo("down", input) || config->isMappedTo("rightbottom", input))
|
else if(config->isMappedTo("down", input) || config->isMappedTo("pagedown", input))
|
||||||
incDir = -1;
|
incDir = -1;
|
||||||
|
|
||||||
if(incDir != 0)
|
if(incDir != 0)
|
||||||
|
|
Loading…
Reference in a new issue