Visualiser RaceController:
event.consume() is required to stop the keyboard event from propogating to other controls.
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user