mirror of
https://github.com/michaelrausch/Party-Parrots-At-Sea.git
synced 2026-05-09 14:28:43 +00:00
Added close button for keyBindingDialog.
- fixed that you cannot bind the key you are using. #story[1278] #pair[hyi25, zyt10]
This commit is contained in:
@@ -53,7 +53,8 @@ public class GameKeyBind {
|
||||
* @return true if successfully bind
|
||||
*/
|
||||
public boolean bindKeyToAction(KeyCode keyCode, KeyAction keyAction) {
|
||||
if (instance.keyToActionMap.containsKey(keyCode)) {
|
||||
if (instance.keyToActionMap.containsKey(keyCode) && !(instance.keyToActionMap.get(keyCode)
|
||||
== keyAction)) {
|
||||
// if the key has been bound to other action, return false
|
||||
return false;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user