diff --git a/pc/src/remoteControl/Client.java b/pc/src/remoteControl/Client.java index d78f9ec4..213890bd 100644 --- a/pc/src/remoteControl/Client.java +++ b/pc/src/remoteControl/Client.java @@ -52,6 +52,7 @@ public Client(String[] args) throws InterruptedException Config config = new Config(); log.useConfig(config); + Commandes.STOP.setCode(32); Commandes.RESET_WHEELS.setCode(config.getInt(ConfigInfo.RESET_WHEELS_KEY)); Commandes.SPEED_DOWN.setCode(config.getInt(ConfigInfo.SPEED_DOWN_KEY)); Commandes.SPEED_UP.setCode(config.getInt(ConfigInfo.SPEED_UP_KEY)); @@ -241,6 +242,7 @@ public synchronized void keyPressed(KeyEvent arg0) if(out == null) return; + for(Commandes c : Commandes.values()) if(code == c.code) {