diff options
Diffstat (limited to 'skey.c')
-rw-r--r-- | skey.c | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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; } |