keymap.c 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /* Copyright 2018 takashiski
  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. #include QMK_KEYBOARD_H
  17. #include "keymap_jp.h"
  18. enum Layer
  19. {
  20. JP,
  21. EN,
  22. CONFIG
  23. };
  24. const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
  25. [JP] = LAYOUT(
  26. JP_LT,JP_GT,JP_PLUS,JP_MINS,\
  27. LT(CONFIG,JP_DOT),JP_COMM,JP_LBRC,LT(CONFIG,JP_RBRC)\
  28. ),
  29. [EN] = LAYOUT(
  30. KC_LT,KC_GT,KC_PLUS,KC_MINS,\
  31. LT(CONFIG,KC_DOT),KC_COMM,KC_LBRC,LT(CONFIG,KC_RBRC)\
  32. ),
  33. [CONFIG]= LAYOUT(
  34. KC_NO,DF(JP),DF(JP),KC_NO,\
  35. KC_TRNS,DF(EN),DF(JP),KC_TRNS\
  36. )
  37. };
  38. void matrix_init_user(void) {
  39. }
  40. void matrix_scan_user(void) {
  41. }
  42. bool process_record_user(uint16_t keycode, keyrecord_t *record) {
  43. return true;
  44. }
  45. void led_set_user(uint8_t usb_led) {
  46. }