Fixed first key press not working. #story[1098]

This commit is contained in:
Joseph Gardner
2017-08-14 12:41:21 +12:00
parent 0558629dc6
commit 7d4f1cd925
4 changed files with 4 additions and 9 deletions
@@ -111,8 +111,8 @@ public class RaceController extends Controller {
ControlKey controlKey = keyFactory.getKey(codeString);
if(controlKey != null) {
try {
controllerClient.sendKey(controlKey);
controlKey.onAction(); // Change key state if applicable
controllerClient.sendKey(controlKey);
event.consume();
} catch (IOException e) {
e.printStackTrace();