Code cleanup
Move a few defines from action.c to action.h. Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
This commit is contained in:
@@ -92,13 +92,6 @@ static bool handleKey(uhk_key_t key, int scancodeIdx, usb_keyboard_report_t *rep
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
#define MOUSE_WHEEL_SPEED 1
|
||||
#define MOUSE_WHEEL_DIVISOR 4
|
||||
|
||||
#define MOUSE_MAX_SPEED 10
|
||||
#define MOUSE_SPEED_ACCEL_DIVISOR 50
|
||||
|
||||
static uint8_t mouseWheelDivisorCounter = 0;
|
||||
static uint8_t mouseSpeedAccelDivisorCounter = 0;
|
||||
static uint8_t mouseSpeed = 3;
|
||||
|
||||
@@ -59,6 +59,12 @@ enum {
|
||||
UHK_MOUSE_SCROLL_RIGHT = (1 << 3),
|
||||
};
|
||||
|
||||
#define MOUSE_WHEEL_SPEED 1
|
||||
#define MOUSE_WHEEL_DIVISOR 4
|
||||
|
||||
#define MOUSE_MAX_SPEED 10
|
||||
#define MOUSE_SPEED_ACCEL_DIVISOR 50
|
||||
|
||||
typedef struct {
|
||||
uint8_t type;
|
||||
union {
|
||||
|
||||
Reference in New Issue
Block a user