| 1234567891011121314151617181920212223 |
- #ifndef __KEY_Hx__
- #define __KEY_Hx__
- #include <linux/input.h>
- enum {
- TYPE_SHORT=0,
- TYPE_LONG,
- };
- typedef struct {
- int type; //TYPE_SHORT TYPE_LONG
- int key;
- }key_val_t;
- int key_init(void);
- int key_deinit(void);
- int key_get(key_val_t *kv);
- int key_print(key_val_t *kv);
- #endif
|