api_key.h 611 B

12345678910111213141516171819
  1. #ifndef _API_KEY_H
  2. #define _API_KEY_H
  3. // Key Type
  4. #define KEY_SHORT 0x0000
  5. #define KEY_SHORT_UP 0x0800
  6. #define KEY_LONG 0x0A00
  7. #define KEY_LONG_UP 0x0C00
  8. #define KEY_HOLD 0x0E00
  9. #define KEY_DOUBLE 0x1800 //2击
  10. #define KEY_THREE 0x1900 //3击
  11. #define KEY_FOUR 0x1A00 //4击
  12. #define KEY_FIVE 0x1B00 //5击
  13. void multiple_key_init(u16 internal, u16 *allow_multiple_key_table, u8 count_of_multiple_key);
  14. u16 key_multi_press_process(u16 key_val);
  15. #endif // _API_KEY_H