src/proto2/Input.hh
changeset 185 25becd2cb026
parent 184 561892e2a30e
child 186 0738f2949a2b
equal deleted inserted replaced
184:561892e2a30e 185:25becd2cb026
     1 #ifndef INPUT_HH
       
     2 #define INPUT_HH
       
     3 
       
     4 const uint16_t INPUT_INTERVAL_MS = 20;
       
     5 
       
     6 enum {
       
     7     // XXX: aiming is not movement?
       
     8     INPUT_MOVE_UP       = 0x0001,
       
     9     INPUT_MOVE_DOWN     = 0x0002,
       
    10 
       
    11     INPUT_MOVE_LEFT     = 0x0004,
       
    12     INPUT_MOVE_RIGHT    = 0x0008,
       
    13 
       
    14     INPUT_MOVE_JUMP     = 0x0010,
       
    15     INPUT_MOVE_DIG      = 0x0020,
       
    16     INPUT_SHOOT         = 0x0040,
       
    17 };
       
    18 
       
    19 typedef uint16_t PlayerInput_Move;
       
    20 
       
    21 #endif