|
|
@ -22,43 +22,42 @@
|
|
|
|
#include "kaleidoscope/event_handler_result.h" // for EventHandlerResult
|
|
|
|
#include "kaleidoscope/event_handler_result.h" // for EventHandlerResult
|
|
|
|
#include "kaleidoscope/key_defs.h" // for Key
|
|
|
|
#include "kaleidoscope/key_defs.h" // for Key
|
|
|
|
#include "kaleidoscope/plugin.h" // for Plugin
|
|
|
|
#include "kaleidoscope/plugin.h" // for Plugin
|
|
|
|
|
|
|
|
|
|
|
|
// =============================================================================
|
|
|
|
// =============================================================================
|
|
|
|
// Deprecated MousKeys code
|
|
|
|
// Deprecated MousKeys code
|
|
|
|
#include "kaleidoscope_internal/deprecations.h" // for DEPRECATED
|
|
|
|
#include "kaleidoscope_internal/deprecations.h" // for DEPRECATED
|
|
|
|
|
|
|
|
|
|
|
|
#define _DEPRECATED_MESSAGE_MOUSEKEYS_SET_SPEED_LIMIT \
|
|
|
|
#define _DEPRECATED_MESSAGE_MOUSEKEYS_SET_SPEED_LIMIT \
|
|
|
|
"The `MouseKeys.setSpeedLimit()` function is deprecated. It no longer has\n" \
|
|
|
|
"The `MouseKeys.setSpeedLimit()` function is deprecated. It no longer has\n" \
|
|
|
|
"any function, and can be safely removed."
|
|
|
|
"any function, and can be safely removed."
|
|
|
|
|
|
|
|
|
|
|
|
#define _DEPRECATED_MESSAGE_MOUSEKEYS_SPEED \
|
|
|
|
#define _DEPRECATED_MESSAGE_MOUSEKEYS_SPEED \
|
|
|
|
"Direct access to the `MouseKeys.speed` variable has been deprecated.\n" \
|
|
|
|
"Direct access to the `MouseKeys.speed` variable has been deprecated.\n" \
|
|
|
|
"Please refer to the MouseKeys documentation for instructions on how to\n" \
|
|
|
|
"Please refer to the MouseKeys documentation for instructions on how to\n" \
|
|
|
|
"configure the plugin.\n"
|
|
|
|
"configure the plugin.\n"
|
|
|
|
|
|
|
|
|
|
|
|
#define _DEPRECATED_MESSAGE_MOUSEKEYS_SPEED_DELAY \
|
|
|
|
#define _DEPRECATED_MESSAGE_MOUSEKEYS_SPEED_DELAY \
|
|
|
|
"Direct access to the `MouseKeys.speedDelay` variable has been deprecated.\n" \
|
|
|
|
"Direct access to the `MouseKeys.speedDelay` variable has been deprecated.\n" \
|
|
|
|
"Please refer to the MouseKeys documentation for instructions on how to\n" \
|
|
|
|
"Please refer to the MouseKeys documentation for instructions on how to\n" \
|
|
|
|
"configure the plugin.\n"
|
|
|
|
"configure the plugin.\n"
|
|
|
|
|
|
|
|
|
|
|
|
#define _DEPRECATED_MESSAGE_MOUSEKEYS_ACCEL_SPEED \
|
|
|
|
#define _DEPRECATED_MESSAGE_MOUSEKEYS_ACCEL_SPEED \
|
|
|
|
"Direct access to the `MouseKeys.accelSpeed` variable has been deprecated.\n" \
|
|
|
|
"Direct access to the `MouseKeys.accelSpeed` variable has been deprecated.\n" \
|
|
|
|
"Please refer to the MouseKeys documentation for instructions on how to\n" \
|
|
|
|
"Please refer to the MouseKeys documentation for instructions on how to\n" \
|
|
|
|
"configure the plugin.\n"
|
|
|
|
"configure the plugin.\n"
|
|
|
|
|
|
|
|
|
|
|
|
#define _DEPRECATED_MESSAGE_MOUSEKEYS_ACCEL_DELAY \
|
|
|
|
#define _DEPRECATED_MESSAGE_MOUSEKEYS_ACCEL_DELAY \
|
|
|
|
"Direct access to the `MouseKeys.accelDelay` variable has been deprecated.\n" \
|
|
|
|
"Direct access to the `MouseKeys.accelDelay` variable has been deprecated.\n" \
|
|
|
|
"Please refer to the MouseKeys documentation for instructions on how to\n" \
|
|
|
|
"Please refer to the MouseKeys documentation for instructions on how to\n" \
|
|
|
|
"configure the plugin.\n"
|
|
|
|
"configure the plugin.\n"
|
|
|
|
|
|
|
|
|
|
|
|
#define _DEPRECATED_MESSAGE_MOUSEKEYS_WHEEL_SPEED \
|
|
|
|
#define _DEPRECATED_MESSAGE_MOUSEKEYS_WHEEL_SPEED \
|
|
|
|
"Direct access to the `MouseKeys.wheelSpeed` variable has been deprecated.\n" \
|
|
|
|
"Direct access to the `MouseKeys.wheelSpeed` variable has been deprecated.\n" \
|
|
|
|
"Please refer to the MouseKeys documentation for instructions on how to\n" \
|
|
|
|
"Please refer to the MouseKeys documentation for instructions on how to\n" \
|
|
|
|
"configure the plugin.\n"
|
|
|
|
"configure the plugin.\n"
|
|
|
|
|
|
|
|
|
|
|
|
#define _DEPRECATED_MESSAGE_MOUSEKEYS_WHEEL_DELAY \
|
|
|
|
#define _DEPRECATED_MESSAGE_MOUSEKEYS_WHEEL_DELAY \
|
|
|
|
"Direct access to the `MouseKeys.wheelDelay` variable has been deprecated.\n" \
|
|
|
|
"Direct access to the `MouseKeys.wheelDelay` variable has been deprecated.\n" \
|
|
|
|
"Please refer to the MouseKeys documentation for instructions on how to\n" \
|
|
|
|
"Please refer to the MouseKeys documentation for instructions on how to\n" \
|
|
|
|
"configure the plugin.\n"
|
|
|
|
"configure the plugin.\n"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -66,7 +65,6 @@ namespace kaleidoscope {
|
|
|
|
namespace plugin {
|
|
|
|
namespace plugin {
|
|
|
|
class MouseKeys : public kaleidoscope::Plugin {
|
|
|
|
class MouseKeys : public kaleidoscope::Plugin {
|
|
|
|
public:
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef NDEPRECATED
|
|
|
|
#ifndef NDEPRECATED
|
|
|
|
DEPRECATED(MOUSEKEYS_SPEED)
|
|
|
|
DEPRECATED(MOUSEKEYS_SPEED)
|
|
|
|
static uint8_t speed;
|
|
|
|
static uint8_t speed;
|
|
|
@ -201,8 +199,8 @@ class MouseKeysConfig : public Plugin {
|
|
|
|
uint16_t settings_addr_;
|
|
|
|
uint16_t settings_addr_;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
} // namespace plugin
|
|
|
|
} // namespace plugin
|
|
|
|
} // namespace kaleidoscope
|
|
|
|
} // namespace kaleidoscope
|
|
|
|
|
|
|
|
|
|
|
|
extern kaleidoscope::plugin::MouseKeys MouseKeys;
|
|
|
|
extern kaleidoscope::plugin::MouseKeys MouseKeys;
|
|
|
|
extern kaleidoscope::plugin::MouseKeysConfig MouseKeysConfig;
|
|
|
|
extern kaleidoscope::plugin::MouseKeysConfig MouseKeysConfig;
|
|
|
|