Changeset 7ee8c5b in mainline
- Timestamp:
- 2009-03-12T19:37:20Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c640876
- Parents:
- 29295cd
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/kbd/include/gsp.h
r29295cd r7ee8c5b 41 41 42 42 enum { 43 GSP_END = -1, 44 GSP_DEFAULT = -2 43 GSP_END = -1, /**< Terminates a sequence. */ 44 GSP_DEFAULT = -2 /**< Wildcard, catches unhandled cases. */ 45 45 }; 46 46 47 /** Scancode parser description */ 47 48 typedef struct { 48 /** Transition table, (state, input) -> (state, output) .*/49 /** Transition table, (state, input) -> (state, output) */ 49 50 hash_table_t trans; 50 51 51 /** Current number of states.*/52 /** Number of states */ 52 53 int states; 53 54 } gsp_t; 54 55 56 /** Scancode parser transition. */ 55 57 typedef struct { 56 link_t link; 58 link_t link; /**< Link to hash table in @c gsp_t */ 57 59 58 int old_state; 59 int input; 60 /* Preconditions */ 60 61 61 int new_state; 62 int old_state; /**< State before transition */ 63 int input; /**< Input symbol (scancode) */ 62 64 63 unsigned out_mods; 64 unsigned out_key; 65 /* Effects */ 66 67 int new_state; /**< State after transition */ 68 69 /* Output emitted during transition */ 70 71 unsigned out_mods; /**< Modifier to emit */ 72 unsigned out_key; /**< Keycode to emit */ 65 73 } gsp_trans_t; 66 74 … … 70 78 extern int gsp_step(gsp_t *, int, int, unsigned *, unsigned *); 71 79 72 73 80 #endif 74 81 … … 76 83 * @} 77 84 */ 78
Note:
See TracChangeset
for help on using the changeset viewer.