Class KeyInput

java.lang.Object
it.unisa.diem.ai.torcs.model.KeyInput

public class KeyInput extends Object
Classe statica per tenere traccia dello stato dei tasti premuti in tempo reale. Viene aggiornata dinamicamente dalla GUI ContinuousCharReaderUI e utilizzata da controller manuali come HumanDriver.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static boolean
    Stato del tasto 'Spazio' (freno premuto = true)
    static boolean
    Stato del tasto 'S' (retromarcia premuta = true)
    static boolean
    Stato del tasto 'A' (sterzata a sinistra premuta = true)
    static boolean
    Stato del tasto 'D' (sterzata a destra premuta = true)
    static boolean
    Stato del tasto 'W' (accelerazione premuta = true)
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • up

      public static boolean up
      Stato del tasto 'W' (accelerazione premuta = true)
    • down

      public static boolean down
      Stato del tasto 'S' (retromarcia premuta = true)
    • left

      public static boolean left
      Stato del tasto 'A' (sterzata a sinistra premuta = true)
    • brake

      public static boolean brake
      Stato del tasto 'Spazio' (freno premuto = true)
  • Constructor Details

    • KeyInput

      public KeyInput()