summaryrefslogtreecommitdiff
path: root/skey.c
diff options
context:
space:
mode:
Diffstat (limited to 'skey.c')
-rw-r--r--skey.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/skey.c b/skey.c
index c3f8e22..0440c19 100644
--- a/skey.c
+++ b/skey.c
@@ -230,31 +230,43 @@ int processkey(int row, int column, int state) {
case MS_UP:
input_event(skey_dev, EV_REL, REL_Y, -MOUSE_DIST);
input_sync(skey_dev);
+ input_event(skey_dev, EV_REL, REL_Y, 0);
+ input_sync(skey_dev);
return 0;
break;
case MS_DOWN:
input_event(skey_dev, EV_REL, REL_Y, +MOUSE_DIST);
input_sync(skey_dev);
+ input_event(skey_dev, EV_REL, REL_Y, 0);
+ input_sync(skey_dev);
return 0;
break;
case MS_LEFT:
input_event(skey_dev, EV_REL, REL_X, -MOUSE_DIST);
input_sync(skey_dev);
+ input_event(skey_dev, EV_REL, REL_X, 0);
+ input_sync(skey_dev);
return 0;
break;
case MS_RIGHT:
input_event(skey_dev, EV_REL, REL_X, +MOUSE_DIST);
input_sync(skey_dev);
+ input_event(skey_dev, EV_REL, REL_X, 0);
+ input_sync(skey_dev);
return 0;
break;
case MS_SCRL_UP:
input_event(skey_dev, EV_REL, REL_WHEEL, +WHEEL_DIST);
input_sync(skey_dev);
+ input_event(skey_dev, EV_REL, REL_WHEEL, 0);
+ input_sync(skey_dev);
return 0;
break;
case MS_SCRL_DOWN:
input_event(skey_dev, EV_REL, REL_WHEEL, -WHEEL_DIST);
input_sync(skey_dev);
+ input_event(skey_dev, EV_REL, REL_WHEEL, 0);
+ input_sync(skey_dev);
return 0;
break;
}