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:
Gergely Nagy
2016-12-15 18:37:30 +01:00
parent 39dd0df58c
commit 5e48da5a7a
2 changed files with 6 additions and 7 deletions

View File

@@ -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;

View File

@@ -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 {