ask for key input when mouse button released, not pressed
This commit is contained in:
@@ -392,10 +392,6 @@ public class OptionsOverlay {
|
|||||||
if (isAdjustingSlider) {
|
if (isAdjustingSlider) {
|
||||||
updateSliderOption(x, y);
|
updateSliderOption(x, y);
|
||||||
}
|
}
|
||||||
} else if (selectedOption == GameOption.KEY_LEFT) {
|
|
||||||
keyEntryLeft = true;
|
|
||||||
} else if (selectedOption == GameOption.KEY_RIGHT) {
|
|
||||||
keyEntryLeft = true;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -417,12 +413,18 @@ public class OptionsOverlay {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (hoverOption != null && hoverOption.getType() == OptionType.BOOLEAN) {
|
if (hoverOption != null) {
|
||||||
hoverOption.click(container);
|
if (hoverOption.getType() == OptionType.BOOLEAN) {
|
||||||
parent.onSaveOption(hoverOption);
|
hoverOption.click(container);
|
||||||
SoundController.playSound(SoundEffect.MENUHIT);
|
parent.onSaveOption(hoverOption);
|
||||||
return;
|
SoundController.playSound(SoundEffect.MENUHIT);
|
||||||
}
|
return;
|
||||||
|
} else if (hoverOption == GameOption.KEY_LEFT) {
|
||||||
|
keyEntryLeft = true;
|
||||||
|
} else if (hoverOption == GameOption.KEY_RIGHT) {
|
||||||
|
keyEntryLeft = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// check if tab was clicked
|
// check if tab was clicked
|
||||||
int tScrollOffset = 0;
|
int tScrollOffset = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user