mirror of
https://github.com/tildearrow/furnace.git
synced 2024-12-04 10:17:26 +00:00
parent
5eae36f092
commit
9fbb7df674
1 changed files with 202 additions and 198 deletions
|
@ -1472,7 +1472,6 @@ void FurnaceGUI::orderInput(int num) {
|
||||||
|
|
||||||
void FurnaceGUI::keyDown(SDL_Event& ev) {
|
void FurnaceGUI::keyDown(SDL_Event& ev) {
|
||||||
if (introPos<11.0 && !shortIntro) return;
|
if (introPos<11.0 && !shortIntro) return;
|
||||||
if (ImGuiFileDialog::Instance()->IsOpened()) return;
|
|
||||||
if (aboutOpen) return;
|
if (aboutOpen) return;
|
||||||
if (cvOpen) return;
|
if (cvOpen) return;
|
||||||
|
|
||||||
|
@ -1490,6 +1489,7 @@ void FurnaceGUI::keyDown(SDL_Event& ev) {
|
||||||
mapped|=FURKMOD_SHIFT;
|
mapped|=FURKMOD_SHIFT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!ImGuiFileDialog::Instance()->IsOpened()) {
|
||||||
if (bindSetActive) {
|
if (bindSetActive) {
|
||||||
if (!ev.key.repeat) {
|
if (!ev.key.repeat) {
|
||||||
switch (ev.key.keysym.sym) {
|
switch (ev.key.keysym.sym) {
|
||||||
|
@ -1735,12 +1735,16 @@ void FurnaceGUI::keyDown(SDL_Event& ev) {
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// GLOBAL KEYS
|
// GLOBAL KEYS
|
||||||
auto actionI=actionMapGlobal.find(mapped);
|
auto actionI=actionMapGlobal.find(mapped);
|
||||||
if (actionI!=actionMapGlobal.cend()) {
|
if (actionI!=actionMapGlobal.cend()) {
|
||||||
int action=actionI->second;
|
int action=actionI->second;
|
||||||
if (action>0) {
|
if (action>0) {
|
||||||
|
if (ImGuiFileDialog::Instance()->IsOpened()) {
|
||||||
|
if (action!=GUI_ACTION_OCTAVE_UP && action!=GUI_ACTION_OCTAVE_DOWN) return;
|
||||||
|
}
|
||||||
doAction(action);
|
doAction(action);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue