mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-12-01 18:45:39 +00:00
Mapped button Y to backspace in TextEditComponent.
This commit is contained in:
parent
f5376defe0
commit
a104b653ae
|
@ -138,6 +138,11 @@ bool TextEditComponent::input(InputConfig* config, Input input)
|
||||||
else if (config->getDeviceId() != DEVICE_KEYBOARD && config->isMappedLike("down", input)) {
|
else if (config->getDeviceId() != DEVICE_KEYBOARD && config->isMappedLike("down", input)) {
|
||||||
// TODO.
|
// TODO.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
else if (config->getDeviceId() != DEVICE_KEYBOARD && config->isMappedTo("y", input)) {
|
||||||
|
textInput("\b");
|
||||||
|
}
|
||||||
|
|
||||||
else if (cursor_left || cursor_right) {
|
else if (cursor_left || cursor_right) {
|
||||||
mCursorRepeatDir = cursor_left ? -1 : 1;
|
mCursorRepeatDir = cursor_left ? -1 : 1;
|
||||||
mCursorRepeatTimer = -(CURSOR_REPEAT_START_DELAY - CURSOR_REPEAT_SPEED);
|
mCursorRepeatTimer = -(CURSOR_REPEAT_START_DELAY - CURSOR_REPEAT_SPEED);
|
||||||
|
@ -298,6 +303,7 @@ std::vector<HelpPrompt> TextEditComponent::getHelpPrompts()
|
||||||
std::vector<HelpPrompt> prompts;
|
std::vector<HelpPrompt> prompts;
|
||||||
if (mEditing) {
|
if (mEditing) {
|
||||||
prompts.push_back(HelpPrompt("up/down/left/right", "move cursor"));
|
prompts.push_back(HelpPrompt("up/down/left/right", "move cursor"));
|
||||||
|
prompts.push_back(HelpPrompt("y", "backspace"));
|
||||||
prompts.push_back(HelpPrompt("b", "stop editing"));
|
prompts.push_back(HelpPrompt("b", "stop editing"));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Reference in a new issue