Visualiser RaceController:

event.consume() is required to stop the keyboard event from propogating to other controls.
This commit is contained in:
fjc40
2017-07-27 13:52:55 +12:00
parent 6492ba89ab
commit f91f7055de
@@ -102,6 +102,7 @@ public class RaceController extends Controller {
try { try {
controllerClient.sendKey(controlKey); controllerClient.sendKey(controlKey);
controlKey.onAction(); // Change key state if applicable controlKey.onAction(); // Change key state if applicable
event.consume();
} catch (IOException e) { } catch (IOException e) {
e.printStackTrace(); e.printStackTrace();
} }