key.h 276 B

12345678910111213141516171819202122
  1. #ifndef __KEY_Hx__
  2. #define __KEY_Hx__
  3. #include <linux/input.h>
  4. enum {
  5. TYPE_SHORT=0,
  6. TYPE_LONG,
  7. };
  8. typedef struct {
  9. int type; //TYPE_SHORT TYPE_LONG
  10. int key;
  11. }key_val_t;
  12. int key_init(void);
  13. int key_deinit(void);
  14. int key_get(key_val_t *kv);
  15. #endif