|
|
|
@ -23,16 +23,60 @@
|
|
|
|
|
#include "kaleidoscope/key_defs.h" // for Key
|
|
|
|
|
#include "kaleidoscope/plugin.h" // for Plugin
|
|
|
|
|
|
|
|
|
|
// =============================================================================
|
|
|
|
|
// Deprecated MouseKeys code
|
|
|
|
|
#include "kaleidoscope_internal/deprecations.h" // for DEPRECATED
|
|
|
|
|
|
|
|
|
|
#define _DEPRECATED_MESSAGE_MOUSEKEYS_SPEED \
|
|
|
|
|
"Direct access to the `MouseKeys.speed` variable has been deprecated.\n" \
|
|
|
|
|
"Please refer to the MouseKeys documentation for instructions on how to\n" \
|
|
|
|
|
"configure the plugin.\n"
|
|
|
|
|
|
|
|
|
|
#define _DEPRECATED_MESSAGE_MOUSEKEYS_SPEED_DELAY \
|
|
|
|
|
"Direct access to the `MouseKeys.speedDelay` variable has been deprecated.\n" \
|
|
|
|
|
"Please refer to the MouseKeys documentation for instructions on how to\n" \
|
|
|
|
|
"configure the plugin.\n"
|
|
|
|
|
|
|
|
|
|
#define _DEPRECATED_MESSAGE_MOUSEKEYS_ACCEL_SPEED \
|
|
|
|
|
"Direct access to the `MouseKeys.accelSpeed` variable has been deprecated.\n" \
|
|
|
|
|
"Please refer to the MouseKeys documentation for instructions on how to\n" \
|
|
|
|
|
"configure the plugin.\n"
|
|
|
|
|
|
|
|
|
|
#define _DEPRECATED_MESSAGE_MOUSEKEYS_ACCEL_DELAY \
|
|
|
|
|
"Direct access to the `MouseKeys.accelDelay` variable has been deprecated.\n" \
|
|
|
|
|
"Please refer to the MouseKeys documentation for instructions on how to\n" \
|
|
|
|
|
"configure the plugin.\n"
|
|
|
|
|
|
|
|
|
|
#define _DEPRECATED_MESSAGE_MOUSEKEYS_WHEEL_SPEED \
|
|
|
|
|
"Direct access to the `MouseKeys.wheelSpeed` variable has been deprecated.\n" \
|
|
|
|
|
"Please refer to the MouseKeys documentation for instructions on how to\n" \
|
|
|
|
|
"configure the plugin.\n"
|
|
|
|
|
|
|
|
|
|
#define _DEPRECATED_MESSAGE_MOUSEKEYS_WHEEL_DELAY \
|
|
|
|
|
"Direct access to the `MouseKeys.wheelDelay` variable has been deprecated.\n" \
|
|
|
|
|
"Please refer to the MouseKeys documentation for instructions on how to\n" \
|
|
|
|
|
"configure the plugin.\n"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace kaleidoscope {
|
|
|
|
|
namespace plugin {
|
|
|
|
|
class MouseKeys : public kaleidoscope::Plugin {
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
#ifndef NDEPRECATED
|
|
|
|
|
DEPRECATED(MOUSEKEYS_SPEED)
|
|
|
|
|
static uint8_t speed;
|
|
|
|
|
DEPRECATED(MOUSEKEYS_SPEED_DELAY)
|
|
|
|
|
static uint16_t speedDelay;
|
|
|
|
|
DEPRECATED(MOUSEKEYS_ACCEL_SPEED)
|
|
|
|
|
static uint8_t accelSpeed;
|
|
|
|
|
DEPRECATED(MOUSEKEYS_ACCEL_DELAY)
|
|
|
|
|
static uint16_t accelDelay;
|
|
|
|
|
DEPRECATED(MOUSEKEYS_WHEEL_SPEED)
|
|
|
|
|
static uint8_t wheelSpeed;
|
|
|
|
|
DEPRECATED(MOUSEKEYS_WHEEL_DELAY)
|
|
|
|
|
static uint16_t wheelDelay;
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
static void setWarpGridSize(uint8_t grid_size);
|
|
|
|
|
static void setSpeedLimit(uint8_t speed_limit);
|
|
|
|
|