numeric_keypad_iie.h 1.3 KB

123456789101112131415161718192021222324252627282930
  1. /* Copyright Adam Newbold <adam@neatnik.net>
  2. *
  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. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU General Public License for more details.
  12. *
  13. * You should have received a copy of the GNU General Public License
  14. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  15. */
  16. #pragma once
  17. #include "quantum.h"
  18. #define LAYOUT( \
  19. K_ESC, K_7, K_8, K_9, K_LEFT_PARENS, K_RIGHT_PARENS, \
  20. K_LEFT, K_4, K_5, K_6, K_MINUS, K_DIVIDE, \
  21. K_RIGHT, K_1, K_2, K_3, K_PLUS, K_MULTIPLY, \
  22. K_SPACE, K_0, K_COMMA, K_DOT, K_RETURN, K_PRINT \
  23. ){ \
  24. { K_RIGHT_PARENS, K_ESC, K_4, K_5, K_6, K_7 },\
  25. { K_DIVIDE, K_LEFT, K_0, K_1, K_2, K_3 },\
  26. { K_PRINT, K_SPACE, K_LEFT_PARENS, K_MINUS, K_RETURN, K_COMMA },\
  27. { K_MULTIPLY, K_RIGHT, K_8, K_9, K_DOT, K_PLUS },\
  28. }