You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
582 B
27 lines
582 B
8 years ago
|
#pragma once
|
||
|
|
||
8 years ago
|
#include "Kaleidoscope.h"
|
||
8 years ago
|
#include "MouseKeyDefs.h"
|
||
|
|
||
8 years ago
|
class MouseKeys_ : public KaleidoscopePlugin {
|
||
8 years ago
|
public:
|
||
|
MouseKeys_ (void);
|
||
|
|
||
|
virtual void begin(void) final;
|
||
8 years ago
|
|
||
|
static uint8_t speed;
|
||
|
static uint16_t speedDelay;
|
||
|
static uint8_t accelSpeed;
|
||
|
static uint16_t accelDelay;
|
||
8 years ago
|
|
||
|
private:
|
||
|
static uint8_t mouseMoveIntent;
|
||
8 years ago
|
static uint32_t startTime;
|
||
|
static uint32_t accelStartTime;
|
||
8 years ago
|
|
||
|
static void loopHook(bool postClear);
|
||
|
static Key eventHandlerHook(Key mappedKey, byte row, byte col, uint8_t keyState);
|
||
8 years ago
|
};
|
||
|
|
||
|
extern MouseKeys_ MouseKeys;
|