logo

qmk_firmware

custom branch of QMK firmware git clone https://anongit.hacktivis.me/git/qmk_firmware.git

bandominedoni.h (1638B)


  1. /* Copyright 2021 3araht
  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. // Uncomment below if a pedal used for Open/Close is normally-on type (such as Yamaha's.)
  19. // #define PEDAL_NORMALLY_CLOSED
  20. #ifdef PEDAL_NORMALLY_CLOSED
  21. # define MO_SWAP MO(_OPEN)
  22. # define DF_SWAP DF(_CLOSE)
  23. # define TG_SWAP TG(_OPEN)
  24. #else
  25. # define MO_SWAP MO(_CLOSE)
  26. # define DF_SWAP DF(_OPEN)
  27. # define TG_SWAP TG(_CLOSE)
  28. #endif
  29. // Long press: go to _FN layer, tap: MUTE
  30. #define FN_MUTE LT(_FN, KC_MUTE)
  31. #define DF_QWER DF(_QWERTY)
  32. #define MIS_EIS LT(_MISC,KC_LNG2)
  33. #define MIS_KAN LT(_MISC,KC_LNG1)
  34. // Overriding is_keyboard_left() in qmk_firmware/quantum/split_common/split_util.c to limit the handedness check only once.
  35. // reason: bandoMIneDonI has no space on right hand side to use "SPLIT_HAND_MATRIX_GRID".
  36. // However, It enables to decide the handedness by the HW by adding one condition: "not to press any keys (especially r30) dusing startup."
  37. bool is_keyboard_left(void);