2021-12-30 05:17:34 +01:00
|
|
|
// Copyright 2020 Christopher Courtney, aka Drashna Jael're (@drashna) <drashna@live.com>
|
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2021-08-21 22:34:44 +02:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
// because layouts seem to not be respecting config.h order atm
|
|
|
|
#ifdef RGBLIGHT_ENABLE
|
2022-10-15 18:59:31 +02:00
|
|
|
# undef RGBLIGHT_EFFECT_BREATHING
|
|
|
|
# undef RGBLIGHT_EFFECT_RAINBOW_MOOD
|
|
|
|
# undef RGBLIGHT_EFFECT_RAINBOW_SWIRL
|
|
|
|
# undef RGBLIGHT_EFFECT_SNAKE
|
|
|
|
# undef RGBLIGHT_EFFECT_KNIGHT
|
|
|
|
# undef RGBLIGHT_EFFECT_CHRISTMAS
|
|
|
|
# undef RGBLIGHT_EFFECT_STATIC_GRADIENT
|
|
|
|
# undef RGBLIGHT_EFFECT_RGB_TEST
|
|
|
|
# undef RGBLIGHT_EFFECT_ALTERNATING
|
|
|
|
# undef RGBLIGHT_EFFECT_TWINKLE
|
2021-08-21 22:34:44 +02:00
|
|
|
# if defined(__AVR__) && (!defined(__AVR_AT90USB1286__) && !defined(RGBLIGHT_ALL_ANIMATIONS))
|
|
|
|
# define RGBLIGHT_EFFECT_BREATHING
|
|
|
|
# define RGBLIGHT_EFFECT_SNAKE
|
|
|
|
# define RGBLIGHT_EFFECT_KNIGHT
|
|
|
|
# else
|
|
|
|
# define RGBLIGHT_EFFECT_BREATHING
|
|
|
|
# define RGBLIGHT_EFFECT_RAINBOW_MOOD
|
|
|
|
# define RGBLIGHT_EFFECT_RAINBOW_SWIRL
|
|
|
|
# define RGBLIGHT_EFFECT_SNAKE
|
|
|
|
# define RGBLIGHT_EFFECT_KNIGHT
|
|
|
|
# if defined(RGBLIGHT_ALL_ANIMATIONS)
|
|
|
|
# define RGBLIGHT_EFFECT_CHRISTMAS
|
|
|
|
# define RGBLIGHT_EFFECT_STATIC_GRADIENT
|
|
|
|
# define RGBLIGHT_EFFECT_RGB_TEST
|
|
|
|
# define RGBLIGHT_EFFECT_ALTERNATING
|
|
|
|
# endif
|
|
|
|
# define RGBLIGHT_EFFECT_TWINKLE
|
|
|
|
# endif
|
|
|
|
#endif
|
2021-09-02 06:08:58 +02:00
|
|
|
|
|
|
|
#ifdef RGB_MATRIX_ENABLE
|
|
|
|
# ifndef RGB_MATRIX_REST_MODE
|
|
|
|
# if defined(SPLIT_KEYBOARD) || defined(KEYBOARD_ergodox_ez) || defined(KEYBOARD_moonlander)
|
|
|
|
# define RGB_MATRIX_REST_MODE RGB_MATRIX_CYCLE_OUT_IN_DUAL
|
|
|
|
# else
|
|
|
|
# define RGB_MATRIX_REST_MODE RGB_MATRIX_CYCLE_OUT_IN
|
|
|
|
# endif
|
|
|
|
# endif
|
2022-11-26 18:18:24 +01:00
|
|
|
# define RGB_MATRIX_DEFAULT_MODE RGB_MATRIX_REST_MODE
|
2021-09-02 06:08:58 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef MOUSEKEY_ENABLE
|
|
|
|
// mouse movement config
|
|
|
|
# ifdef MK_3_SPEED
|
|
|
|
# undef MK_3_SPEED
|
|
|
|
# endif
|
|
|
|
# define MK_KINETIC_SPEED
|
|
|
|
# ifdef MK_KINETIC_SPEED
|
|
|
|
# ifndef MOUSEKEY_DELAY
|
|
|
|
# define MOUSEKEY_DELAY 8
|
|
|
|
# endif
|
|
|
|
# ifndef MOUSEKEY_INTERVAL
|
|
|
|
# define MOUSEKEY_INTERVAL 20
|
|
|
|
# endif
|
|
|
|
# ifndef MOUSEKEY_MOVE_DELTA
|
|
|
|
# define MOUSEKEY_MOVE_DELTA 25
|
|
|
|
# endif
|
|
|
|
# else
|
|
|
|
# ifndef MOUSEKEY_DELAY
|
|
|
|
# define MOUSEKEY_DELAY 300
|
|
|
|
# endif
|
|
|
|
# ifndef MOUSEKEY_INTERVAL
|
|
|
|
# define MOUSEKEY_INTERVAL 50
|
|
|
|
# endif
|
|
|
|
# ifndef MOUSEKEY_MOVE_DELTA
|
|
|
|
# define MOUSEKEY_MOVE_DELTA 5
|
|
|
|
# endif
|
|
|
|
# endif
|
|
|
|
# ifndef MOUSEKEY_MAX_SPEED
|
|
|
|
# define MOUSEKEY_MAX_SPEED 7
|
|
|
|
# endif
|
|
|
|
# ifndef MOUSEKEY_TIME_TO_MAX
|
|
|
|
# define MOUSEKEY_TIME_TO_MAX 60
|
|
|
|
# endif
|
|
|
|
# ifndef MOUSEKEY_INITIAL_SPEED
|
|
|
|
# define MOUSEKEY_INITIAL_SPEED 100
|
|
|
|
# endif
|
|
|
|
# ifndef MOUSEKEY_BASE_SPEED
|
|
|
|
# define MOUSEKEY_BASE_SPEED 1000
|
|
|
|
# endif
|
|
|
|
# ifndef MOUSEKEY_DECELERATED_SPEED
|
|
|
|
# define MOUSEKEY_DECELERATED_SPEED 400
|
|
|
|
# endif
|
|
|
|
# ifndef MOUSEKEY_ACCELERATED_SPEED
|
|
|
|
# define MOUSEKEY_ACCELERATED_SPEED 3000
|
|
|
|
# endif
|
|
|
|
// mouse scroll config
|
|
|
|
# ifndef MOUSEKEY_WHEEL_DELAY
|
|
|
|
# define MOUSEKEY_WHEEL_DELAY 15
|
|
|
|
# endif
|
|
|
|
# ifndef MOUSEKEY_WHEEL_DELTA
|
|
|
|
# define MOUSEKEY_WHEEL_DELTA 1
|
|
|
|
# endif
|
|
|
|
# ifndef MOUSEKEY_WHEEL_INTERVAL
|
|
|
|
# define MOUSEKEY_WHEEL_INTERVAL 50
|
|
|
|
# endif
|
|
|
|
# ifndef MOUSEKEY_WHEEL_MAX_SPEED
|
|
|
|
# define MOUSEKEY_WHEEL_MAX_SPEED 8
|
|
|
|
# endif
|
|
|
|
# ifndef MOUSEKEY_WHEEL_TIME_TO_MAX
|
|
|
|
# define MOUSEKEY_WHEEL_TIME_TO_MAX 80
|
|
|
|
# endif
|
|
|
|
// mouse scroll kinetic config
|
|
|
|
# ifndef MOUSEKEY_WHEEL_INITIAL_MOVEMENTS
|
|
|
|
# define MOUSEKEY_WHEEL_INITIAL_MOVEMENTS 8
|
|
|
|
# endif
|
|
|
|
# ifndef MOUSEKEY_WHEEL_BASE_MOVEMENTS
|
|
|
|
# define MOUSEKEY_WHEEL_BASE_MOVEMENTS 48
|
|
|
|
# endif
|
|
|
|
# ifndef MOUSEKEY_WHEEL_ACCELERATED_MOVEMENTS
|
|
|
|
# define MOUSEKEY_WHEEL_ACCELERATED_MOVEMENTS 48
|
|
|
|
# endif
|
|
|
|
# ifndef MOUSEKEY_WHEEL_DECELERATED_MOVEMENTS
|
|
|
|
# define MOUSEKEY_WHEEL_DECELERATED_MOVEMENTS 8
|
|
|
|
# endif
|
|
|
|
#endif // MOUSEKEY_ENABLE
|
|
|
|
|
2022-08-28 21:55:19 +02:00
|
|
|
#define MOUSE_EXTENDED_REPORT
|
2021-12-30 05:17:34 +01:00
|
|
|
|
|
|
|
#ifndef TAPPING_TERM
|
|
|
|
# define TAPPING_TERM 175
|
|
|
|
#endif
|
2022-08-28 21:55:19 +02:00
|
|
|
|
|
|
|
#ifndef SECURE_UNLOCK_SEQUENCE
|
|
|
|
# define SECURE_UNLOCK_SEQUENCE \
|
|
|
|
{ \
|
|
|
|
{2, 1}, {2, 2}, {2, 3}, { \
|
|
|
|
2, 4 \
|
|
|
|
} \
|
|
|
|
}
|
|
|
|
#endif
|
2022-09-25 22:04:00 +02:00
|
|
|
|
|
|
|
#if defined(SPLIT_KEYBOARD) && defined(PROTOCOL_CHIBIOS) && !defined(USB_SUSPEND_WAKEUP_DELAY)
|
|
|
|
# define USB_SUSPEND_WAKEUP_DELAY 200
|
|
|
|
#endif
|