|
|
@ -5,6 +5,8 @@
|
|
|
|
#include "KeyboardioFirmware.h"
|
|
|
|
#include "KeyboardioFirmware.h"
|
|
|
|
|
|
|
|
|
|
|
|
uint8_t MouseKeys_::mouseMoveIntent;
|
|
|
|
uint8_t MouseKeys_::mouseMoveIntent;
|
|
|
|
|
|
|
|
uint8_t MouseKeys_::accelDelay;
|
|
|
|
|
|
|
|
uint8_t MouseKeys_::accelDelayCounter;
|
|
|
|
|
|
|
|
|
|
|
|
void MouseKeys_::loopHook(bool postClear) {
|
|
|
|
void MouseKeys_::loopHook(bool postClear) {
|
|
|
|
if (postClear) {
|
|
|
|
if (postClear) {
|
|
|
@ -19,8 +21,12 @@ void MouseKeys_::loopHook(bool postClear) {
|
|
|
|
|
|
|
|
|
|
|
|
int8_t moveX = 0, moveY = 0;
|
|
|
|
int8_t moveX = 0, moveY = 0;
|
|
|
|
|
|
|
|
|
|
|
|
if (MouseWrapper.mouseActiveForCycles < 255)
|
|
|
|
if (accelDelayCounter == accelDelay) {
|
|
|
|
MouseWrapper.mouseActiveForCycles++;
|
|
|
|
if (MouseWrapper.mouseActiveForCycles < 255)
|
|
|
|
|
|
|
|
MouseWrapper.mouseActiveForCycles++;
|
|
|
|
|
|
|
|
accelDelayCounter = 0;
|
|
|
|
|
|
|
|
} else
|
|
|
|
|
|
|
|
accelDelayCounter++;
|
|
|
|
|
|
|
|
|
|
|
|
if (mouseMoveIntent & KEY_MOUSE_UP)
|
|
|
|
if (mouseMoveIntent & KEY_MOUSE_UP)
|
|
|
|
moveY = -1;
|
|
|
|
moveY = -1;
|
|
|
|