Don't expose ProcessMouseAction() and rename it to processMouseAction()
This commit is contained in:
@@ -90,7 +90,6 @@ typedef struct {
|
|||||||
};
|
};
|
||||||
} __attribute__ ((packed)) key_action_t;
|
} __attribute__ ((packed)) key_action_t;
|
||||||
|
|
||||||
void ProcessMouseAction(key_action_t action);
|
extern void UpdateActiveUsbReports();
|
||||||
void UpdateActiveUsbReports();
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ static uint8_t mouseSpeedAccelDivisorCounter = 0;
|
|||||||
static uint8_t mouseSpeed = 3;
|
static uint8_t mouseSpeed = 3;
|
||||||
static bool wasPreviousMouseActionWheelAction = false;
|
static bool wasPreviousMouseActionWheelAction = false;
|
||||||
|
|
||||||
void ProcessMouseAction(key_action_t action)
|
void processMouseAction(key_action_t action)
|
||||||
{
|
{
|
||||||
bool isWheelAction = action.mouse.scrollActions && !action.mouse.moveActions && !action.mouse.buttonActions;
|
bool isWheelAction = action.mouse.scrollActions && !action.mouse.moveActions && !action.mouse.buttonActions;
|
||||||
|
|
||||||
@@ -100,7 +100,7 @@ void UpdateActiveUsbReports() {
|
|||||||
ActiveUsbKeyboardReport->modifiers |= action.keystroke.mods;
|
ActiveUsbKeyboardReport->modifiers |= action.keystroke.mods;
|
||||||
break;
|
break;
|
||||||
case KEY_ACTION_MOUSE:
|
case KEY_ACTION_MOUSE:
|
||||||
ProcessMouseAction(action);
|
processMouseAction(action);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user