diff options
Diffstat (limited to 'skey.c')
-rw-r--r-- | skey.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -82,9 +82,9 @@ int current_keymap = 0; */ int stickymode = 0; //number of pixels mousemove buttons do -#define MOUSE_DIST 5 +#define MOUSE_DIST 0.1 //same but for scrollwheel -#define WHEEL_DIST 5 +#define WHEEL_DIST 0.1 /* * clears the state of stickymode keystates, sends a key up event if it was previously pressed * @@ -228,12 +228,12 @@ int processkey(int row, int column, int state) { return 0; break; case MS_UP: - input_event(skey_dev, EV_REL, REL_Y, +MOUSE_DIST); + input_event(skey_dev, EV_REL, REL_Y, -MOUSE_DIST); input_sync(skey_dev); return 0; break; case MS_DOWN: - input_event(skey_dev, EV_REL, REL_Y, -MOUSE_DIST); + input_event(skey_dev, EV_REL, REL_Y, +MOUSE_DIST); input_sync(skey_dev); return 0; break; |