Keyboard firmwares for Atmel AVR and Cortex-M
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

actionmap_common.h 3.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*
  2. Copyright 2015 Jun Wako <[email protected]>
  3. This program is free software: you can redistribute it and/or modify
  4. it under the terms of the GNU General Public License as published by
  5. the Free Software Foundation, either version 2 of the License, or
  6. (at your option) any later version.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU General Public License for more details.
  11. You should have received a copy of the GNU General Public License
  12. along with this program. If not, see <http://www.gnu.org/licenses/>.
  13. */
  14. #ifndef ACTIONMAP_COMMON_H
  15. #define ACTIONMAP_COMMON_H
  16. /* keymap definition macro */
  17. #define ACTIONMAP( \
  18. K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, \
  19. K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, \
  20. K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, \
  21. K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, \
  22. K40, K41, K42, K43, K44, K45, K46, K47, K48, K49, K4A, K4B, \
  23. K50, K51, K52, K53, K54, K55, K56, K57, K58, K59, K5A, K5B, \
  24. K60, K61, K62, K63, K64, K65, K66, K67, K68, K69, K6A, K6B, \
  25. K70, K71, K72, K73, K74, K75, K76, K77, K78, K79, K7A, K7B, \
  26. K80, K81, K82, K83, K84, K85, K86, K87, K88, K89, K8A, K8B, \
  27. K90, K91, K92, K93, K94, K95, K96, K97, K98, K99, K9A, K9B, \
  28. KA0, KA1, KA2, KA3, KA4, KA5, KA6, KA7, KA8, KA9, KAA, KAB, \
  29. KB0, KB1, KB2, KB3, KB4, KB5, KB6, KB7, KB8, KB9, KBA, KBB \
  30. ) { \
  31. { AC_##K00, AC_##K01, AC_##K02, AC_##K03, AC_##K04, AC_##K05, AC_##K06, AC_##K07, AC_##K08, AC_##K09, AC_##K0A, AC_##K0B }, \
  32. { AC_##K10, AC_##K11, AC_##K12, AC_##K13, AC_##K14, AC_##K15, AC_##K16, AC_##K17, AC_##K18, AC_##K19, AC_##K1A, AC_##K1B }, \
  33. { AC_##K20, AC_##K21, AC_##K22, AC_##K23, AC_##K24, AC_##K25, AC_##K26, AC_##K27, AC_##K28, AC_##K29, AC_##K2A, AC_##K2B }, \
  34. { AC_##K30, AC_##K31, AC_##K32, AC_##K33, AC_##K34, AC_##K35, AC_##K36, AC_##K37, AC_##K38, AC_##K39, AC_##K3A, AC_##K3B }, \
  35. { AC_##K40, AC_##K41, AC_##K42, AC_##K43, AC_##K44, AC_##K45, AC_##K46, AC_##K47, AC_##K48, AC_##K49, AC_##K4A, AC_##K4B }, \
  36. { AC_##K50, AC_##K51, AC_##K52, AC_##K53, AC_##K54, AC_##K55, AC_##K56, AC_##K57, AC_##K58, AC_##K59, AC_##K5A, AC_##K5B }, \
  37. { AC_##K60, AC_##K61, AC_##K62, AC_##K63, AC_##K64, AC_##K65, AC_##K66, AC_##K67, AC_##K68, AC_##K69, AC_##K6A, AC_##K6B }, \
  38. { AC_##K70, AC_##K71, AC_##K72, AC_##K73, AC_##K74, AC_##K75, AC_##K76, AC_##K77, AC_##K78, AC_##K79, AC_##K7A, AC_##K7B }, \
  39. { AC_##K80, AC_##K81, AC_##K82, AC_##K83, AC_##K84, AC_##K85, AC_##K86, AC_##K87, AC_##K88, AC_##K89, AC_##K8A, AC_##K8B }, \
  40. { AC_##K90, AC_##K91, AC_##K92, AC_##K93, AC_##K94, AC_##K95, AC_##K96, AC_##K97, AC_##K98, AC_##K99, AC_##K9A, AC_##K9B }, \
  41. { AC_##KA0, AC_##KA1, AC_##KA2, AC_##KA3, AC_##KA4, AC_##KA5, AC_##KA6, AC_##KA7, AC_##KA8, AC_##KA9, AC_##KAA, AC_##KAB }, \
  42. { AC_##KB0, AC_##KB1, AC_##KB2, AC_##KB3, AC_##KB4, AC_##KB5, AC_##KB6, AC_##KB7, AC_##KB8, AC_##KB9, AC_##KBA, AC_##KBB } \
  43. }
  44. #endif