From 138bf8bb674c919bab448320c8ed75eabb73260d Mon Sep 17 00:00:00 2001 From: knolax <1339802534.kk@gmail.com> Date: Fri, 29 Dec 2017 19:07:50 -0500 Subject: testing revealed that the mouse up and down were reversed, and that MOUSE_DIST was too high. this changes them. --- skey.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/skey.c b/skey.c index b3dedd5..f4aba5a 100644 --- a/skey.c +++ b/skey.c @@ -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; -- cgit v1.1