Visualiser RaceController:

event.consume() is required to stop the keyboard event from propogating to other controls.
main
fjc40 9 years ago
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();
} }

Loading…
Cancel
Save