mirror of
https://github.com/Keychron/qmk_firmware.git
synced 2024-11-23 17:06:52 +06:00
4d9b11af14
* Remove unnecessary IS_COMMAND definition in clueboard/66/rev4 * Replace keyboard_report->mods with get_mods() in IS_COMMAND definitions * Update docs to use get_mods() instead of keyboard_report->mods * Replace keyboard_report->mods with get_mods() in tmk_core/protocol/usb_hid/test For some reason, this occurrence used KB_LSHIFT and KB_RSHIFT, which don't exist * Replace keyboard_report->mods with get_mods() in Massdrop keyboards (as per @patrickmt)
36 lines
1.1 KiB
C
36 lines
1.1 KiB
C
#ifndef KEYBOARDS_ERGODOX_CONFIG_H_
|
|
#define KEYBOARDS_ERGODOX_CONFIG_H_
|
|
|
|
#include QMK_KEYBOARD_CONFIG_H
|
|
|
|
#undef MOUSEKEY_DELAY
|
|
#undef MOUSEKEY_INTERVAL
|
|
#undef MOUSEKEY_MAX_SPEED
|
|
#undef MOUSEKEY_TIME_TO_MAX
|
|
|
|
#define MOUSEKEY_DELAY 100
|
|
#define MOUSEKEY_INTERVAL 20
|
|
#define MOUSEKEY_MAX_SPEED 3
|
|
#define MOUSEKEY_TIME_TO_MAX 10
|
|
|
|
#define TAPPING_TOGGLE 1
|
|
|
|
/* define if matrix has ghost */
|
|
//#define MATRIX_HAS_GHOST
|
|
#undef TAPPING_TERM
|
|
#define TAPPING_TERM 300
|
|
#define IGNORE_MOD_TAP_INTERRUPT // this makes it possible to do rolling combos (zx) with keys that convert to other keys on hold (z becomes ctrl when you hold it, and when this option isn't enabled, z rapidly followed by x actually sends Ctrl-x. That's bad.)
|
|
|
|
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
|
|
#define LOCKING_SUPPORT_ENABLE
|
|
/* Locking resynchronize hack */
|
|
#define LOCKING_RESYNC_ENABLE
|
|
|
|
/* key combination for command */
|
|
#define IS_COMMAND() ( \
|
|
get_mods() == (MOD_BIT(KC_LCTL) | MOD_BIT(KC_RCTL)) || \
|
|
get_mods() == (MOD_BIT(KC_LSFT) | MOD_BIT(KC_RSFT)) \
|
|
)
|
|
|
|
#endif /* KEYBOARDS_ERGODOX_CONFIG_H_ */
|