ControllerClient can retrieve valid protocol code from each key press

- ControlKey now includes protocolCode property
- RaceController now fires action with each key press
- Shift toggles sail state appropriately

#story[1089]
This commit is contained in:
Connor Taylor-Brown
2017-07-26 23:40:39 +12:00
parent 86e8cb7560
commit e670ded66d
8 changed files with 28 additions and 8 deletions
@@ -101,6 +101,7 @@ public class RaceController extends Controller {
if(controlKey != null) {
try {
controllerClient.sendKey(controlKey);
controlKey.onAction(); // Change key state if applicable
} catch (IOException e) {
e.printStackTrace();
}