Kaleidoscope
Kaleidoscope-MouseKeys.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "Kaleidoscope.h"
4 #include "MouseKeyDefs.h"
5 
6 class MouseKeys_ : public KaleidoscopePlugin {
7  public:
8  MouseKeys_(void);
9 
10  void begin(void) final;
11 
12  static uint8_t speed;
13  static uint16_t speedDelay;
14  static uint8_t accelSpeed;
15  static uint16_t accelDelay;
16  static uint8_t wheelSpeed;
17  static uint16_t wheelDelay;
18 
19  private:
20  static uint8_t mouseMoveIntent;
21  static uint32_t endTime;
22  static uint32_t accelEndTime;
23  static uint32_t wheelEndTime;
24 
25  static void scrollWheel(uint8_t keyCode);
26  static void loopHook(bool postClear);
27  static Key eventHandlerHook(Key mappedKey, byte row, byte col, uint8_t keyState);
28 };
29 
30 extern MouseKeys_ MouseKeys;
MouseKeys_ MouseKeys
Definition: Kaleidoscope-MouseKeys.cpp:120
static uint16_t speedDelay
Definition: Kaleidoscope-MouseKeys.h:13
void begin(void) final
Definition: Kaleidoscope-MouseKeys.cpp:114
static uint8_t speed
Definition: Kaleidoscope-MouseKeys.h:12
static uint16_t accelDelay
Definition: Kaleidoscope-MouseKeys.h:15
static uint8_t accelSpeed
Definition: Kaleidoscope-MouseKeys.h:14
byte byte col
Definition: TapDance.cpp:229
MouseKeys_(void)
Definition: Kaleidoscope-MouseKeys.cpp:110
static uint8_t wheelSpeed
Definition: Kaleidoscope-MouseKeys.h:16
Definition: key_defs.h:13
static uint16_t wheelDelay
Definition: Kaleidoscope-MouseKeys.h:17
Definition: Kaleidoscope-MouseKeys.h:6
Definition: Kaleidoscope.h:40
byte row
Definition: TapDance.cpp:229
uint8_t keyState
Definition: Kaleidoscope-Macros.cpp:5