input_pico.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. #ifndef INCLUDE_c48097f3ff2a6a9af1cce8fd7a9b3f0c
  2. #define INCLUDE_c48097f3ff2a6a9af1cce8fd7a9b3f0c 1
  3. /* gamepad - MXYZ SACB RLDU */
  4. #define GBTN_UP 0
  5. #define GBTN_DOWN 1
  6. #define GBTN_LEFT 2
  7. #define GBTN_RIGHT 3
  8. #define GBTN_B 4
  9. #define GBTN_C 5
  10. #define GBTN_A 6
  11. #define GBTN_START 7
  12. #define GBTN_Z 8
  13. #define GBTN_Y 9
  14. #define GBTN_X 10
  15. #define GBTN_MODE 11
  16. /* ui events */
  17. #define PEVB_VOL_DOWN 30
  18. #define PEVB_VOL_UP 29
  19. #define PEVB_STATE_LOAD 28
  20. #define PEVB_STATE_SAVE 27
  21. #define PEVB_SWITCH_RND 26
  22. #define PEVB_SSLOT_PREV 25
  23. #define PEVB_SSLOT_NEXT 24
  24. #define PEVB_MENU 23
  25. #define PEVB_FF 22
  26. #define PEVB_PICO_PNEXT 21
  27. #define PEVB_PICO_PPREV 20
  28. #define PEVB_PICO_SWINP 19
  29. #define PEVB_RESET 18
  30. #define PEVB_BRIGHT_UP 17
  31. #define PEVB_BRIGHT_DOWN 16
  32. #define PEVB_AR_FACT_UP 15
  33. #define PEVB_AR_FACT_DOWN 14
  34. #define PEVB_DISPMODE 13
  35. #define PEV_VOL_DOWN (1 << PEVB_VOL_DOWN)
  36. #define PEV_VOL_UP (1 << PEVB_VOL_UP)
  37. #define PEV_STATE_LOAD (1 << PEVB_STATE_LOAD)
  38. #define PEV_STATE_SAVE (1 << PEVB_STATE_SAVE)
  39. #define PEV_SWITCH_RND (1 << PEVB_SWITCH_RND)
  40. #define PEV_SSLOT_PREV (1 << PEVB_SSLOT_PREV)
  41. #define PEV_SSLOT_NEXT (1 << PEVB_SSLOT_NEXT)
  42. #define PEV_MENU (1 << PEVB_MENU)
  43. #define PEV_FF (1 << PEVB_FF)
  44. #define PEV_PICO_PNEXT (1 << PEVB_PICO_PNEXT)
  45. #define PEV_PICO_PPREV (1 << PEVB_PICO_PPREV)
  46. #define PEV_PICO_SWINP (1 << PEVB_PICO_SWINP)
  47. #define PEV_RESET (1 << PEVB_RESET)
  48. #define PEV_BRIGHT_UP (1 << PEVB_BRIGHT_UP)
  49. #define PEV_BRIGHT_DOWN (1 << PEVB_BRIGHT_DOWN)
  50. #define PEV_AR_FACT_UP (1 << PEVB_AR_FACT_UP)
  51. #define PEV_AR_FACT_DOWN (1 << PEVB_AR_FACT_DOWN)
  52. #define PEV_DISPMODE (1 << PEVB_DISPMODE)
  53. //#define PEV_MASK 0x7ffc0000
  54. #define PEV_MASK 0x7fffe000
  55. #endif /* INCLUDE_c48097f3ff2a6a9af1cce8fd7a9b3f0c */