Alternative library and kernel for add-in development on fx-9860G and fx-CG50 under Linux.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

keycodes.h 1.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. //---
  2. // gint:keycodes - Matrix code for all keyboard keys
  3. //---
  4. #ifndef GINT_KEYCODES
  5. #define GINT_KEYCODES
  6. /* Raw matrix codes */
  7. enum {
  8. KEY_F1 = 0x91,
  9. KEY_F2 = 0x92,
  10. KEY_F3 = 0x93,
  11. KEY_F4 = 0x94,
  12. KEY_F5 = 0x95,
  13. KEY_F6 = 0x96,
  14. KEY_SHIFT = 0x81,
  15. KEY_OPTN = 0x82,
  16. KEY_VARS = 0x83,
  17. KEY_MENU = 0x84,
  18. KEY_LEFT = 0x85,
  19. KEY_UP = 0x86,
  20. KEY_ALPHA = 0x71,
  21. KEY_SQUARE = 0x72,
  22. KEY_POWER = 0x73,
  23. KEY_EXIT = 0x74,
  24. KEY_DOWN = 0x75,
  25. KEY_RIGHT = 0x76,
  26. KEY_XOT = 0x61,
  27. KEY_LOG = 0x62,
  28. KEY_LN = 0x63,
  29. KEY_SIN = 0x64,
  30. KEY_COS = 0x65,
  31. KEY_TAN = 0x66,
  32. KEY_FRAC = 0x51,
  33. KEY_FD = 0x52,
  34. KEY_LEFTP = 0x53,
  35. KEY_RIGHTP = 0x54,
  36. KEY_COMMA = 0x55,
  37. KEY_ARROW = 0x56,
  38. KEY_7 = 0x41,
  39. KEY_8 = 0x42,
  40. KEY_9 = 0x43,
  41. KEY_DEL = 0x44,
  42. /* AC/ON has keycode 0x07 instead of 0x45 */
  43. KEY_4 = 0x31,
  44. KEY_5 = 0x32,
  45. KEY_6 = 0x33,
  46. KEY_MUL = 0x34,
  47. KEY_DIV = 0x35,
  48. KEY_1 = 0x21,
  49. KEY_2 = 0x22,
  50. KEY_3 = 0x23,
  51. KEY_ADD = 0x24,
  52. KEY_SUB = 0x25,
  53. KEY_0 = 0x11,
  54. KEY_DOT = 0x12,
  55. KEY_EXP = 0x13,
  56. KEY_NEG = 0x14,
  57. KEY_EXE = 0x15,
  58. /* Why is AC/ON not 0x45? Because it must be on a row/column of its
  59. own. It's used to power up the calculator; if it were in the middle
  60. of the matrix one could use a ghosting effect to boot the calc. */
  61. KEY_ACON = 0x07,
  62. /* Key aliases (handle with care =D) */
  63. KEY_X2 = KEY_SQUARE,
  64. KEY_CARET = KEY_POWER,
  65. KEY_SWITCH = KEY_FD,
  66. KEY_LEFTPAR = KEY_LEFTP,
  67. KEY_RIGHTPAR = KEY_RIGHTP,
  68. KEY_STORE = KEY_ARROW,
  69. KEY_TIMES = KEY_MUL,
  70. KEY_PLUS = KEY_ADD,
  71. KEY_MINUS = KEY_SUB,
  72. };
  73. #endif /* GINT_KEYCODES */