summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorknolax <1339802534.kk@gmail.com>2017-12-29 19:07:50 -0500
committerknolax <1339802534.kk@gmail.com>2017-12-29 19:07:50 -0500
commit138bf8bb674c919bab448320c8ed75eabb73260d (patch)
tree9ea8230372737b26cbd60e7d5f60d766e8ce0dc7
parent3dbdd1b9a99fdd46456a52401c434e0af1a326ef (diff)
testing revealed that the mouse up and down were reversed, and that MOUSE_DIST was too high. this changes them.
-rw-r--r--skey.c8
1 files 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;