Home | History | Annotate | Download | only in include
      1 #ifndef __VTERM_INPUT_H__
      2 #define __VTERM_INPUT_H__
      3 
      4 typedef enum {
      5   VTERM_MOD_NONE  = 0x00,
      6   VTERM_MOD_SHIFT = 0x01,
      7   VTERM_MOD_ALT   = 0x02,
      8   VTERM_MOD_CTRL  = 0x04,
      9 } VTermModifier;
     10 
     11 typedef enum {
     12   VTERM_KEY_NONE,
     13 
     14   VTERM_KEY_ENTER,
     15   VTERM_KEY_TAB,
     16   VTERM_KEY_BACKSPACE,
     17   VTERM_KEY_ESCAPE,
     18 
     19   VTERM_KEY_UP,
     20   VTERM_KEY_DOWN,
     21   VTERM_KEY_LEFT,
     22   VTERM_KEY_RIGHT,
     23 
     24   VTERM_KEY_INS,
     25   VTERM_KEY_DEL,
     26   VTERM_KEY_HOME,
     27   VTERM_KEY_END,
     28   VTERM_KEY_PAGEUP,
     29   VTERM_KEY_PAGEDOWN,
     30 
     31   VTERM_KEY_FUNCTION_0   = 256,
     32   VTERM_KEY_FUNCTION_MAX = VTERM_KEY_FUNCTION_0 + 255,
     33 
     34   VTERM_KEY_KP_0,
     35   VTERM_KEY_KP_1,
     36   VTERM_KEY_KP_2,
     37   VTERM_KEY_KP_3,
     38   VTERM_KEY_KP_4,
     39   VTERM_KEY_KP_5,
     40   VTERM_KEY_KP_6,
     41   VTERM_KEY_KP_7,
     42   VTERM_KEY_KP_8,
     43   VTERM_KEY_KP_9,
     44   VTERM_KEY_KP_MULT,
     45   VTERM_KEY_KP_PLUS,
     46   VTERM_KEY_KP_COMMA,
     47   VTERM_KEY_KP_MINUS,
     48   VTERM_KEY_KP_PERIOD,
     49   VTERM_KEY_KP_DIVIDE,
     50   VTERM_KEY_KP_ENTER,
     51   VTERM_KEY_KP_EQUAL,
     52 
     53   VTERM_KEY_MAX, // Must be last
     54 } VTermKey;
     55 
     56 #define VTERM_KEY_FUNCTION(n) (VTERM_KEY_FUNCTION_0+(n))
     57 
     58 #endif
     59