Created scene to view/update current key bindings.

- Current key bindings are shown on buttons
- Added button action events to store the clicked button
- Added key press event to entire pane
- Button text is updated to display its key
- Added functionality to keyFactory to update key bindings
- CSS styling for some components

#story[1197]
This commit is contained in:
Jessica Syder
2017-08-30 17:16:15 +12:00
parent 7086af6057
commit ad0e26e882
5 changed files with 192 additions and 4 deletions
@@ -48,4 +48,12 @@ public class KeyFactory {
return keyState.get(key);
}
public Map<String, ControlKey> getKeyState() {
return keyState;
}
public void updateKey(String oldKey, String newKey){
ControlKey controlKey = keyState.get(oldKey);
keyState.put(newKey, controlKey);
}
}