From 5e48da5a7a21e1b1d49cadb987d60ab4db9a76e0 Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Thu, 15 Dec 2016 18:37:30 +0100 Subject: [PATCH] Code cleanup Move a few defines from action.c to action.h. Signed-off-by: Gergely Nagy --- right/src/action.c | 7 ------- right/src/action.h | 6 ++++++ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/right/src/action.c b/right/src/action.c index 8702c2c..694d2f5 100644 --- a/right/src/action.c +++ b/right/src/action.c @@ -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; diff --git a/right/src/action.h b/right/src/action.h index df7441d..823bd88 100644 --- a/right/src/action.h +++ b/right/src/action.h @@ -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 {