diff options
author | knolax <1339802534.kk@gmail.com> | 2017-12-29 19:07:50 -0500 |
---|---|---|
committer | knolax <1339802534.kk@gmail.com> | 2017-12-29 19:07:50 -0500 |
commit | 138bf8bb674c919bab448320c8ed75eabb73260d (patch) | |
tree | 9ea8230372737b26cbd60e7d5f60d766e8ce0dc7 /skey.c | |
parent | 3dbdd1b9a99fdd46456a52401c434e0af1a326ef (diff) |
testing revealed that the mouse up and down were reversed, and that MOUSE_DIST was too high. this changes them.
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; |