keys.h 346 B

123456789101112131415161718192021222324252627
  1. #ifndef KEYS_H
  2. #define KEYS_H
  3. /*
  4. * keys include the joystick and mouse left/mid/right keys
  5. */
  6. #include "devterm.h"
  7. #include "keys_io_map.h"
  8. #include <stdint.h>
  9. #include <stdbool.h>
  10. #include <string.h>
  11. #ifndef KEY_DEBOUNCE
  12. # define KEY_DEBOUNCE 5
  13. #endif
  14. #define KEYS_NUM 17
  15. void keys_task(DEVTERM*);
  16. void keys_init(DEVTERM*);
  17. #endif