qmk_firmware

QMK firmware for my keyboards (Corne, Sweep Ferris) and trackball (Ploopy Adept)
Log | Files | Refs | Submodules | LICENSE

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