diff options
| author | Vladimir Kondratyev <wulf@FreeBSD.org> | 2017-11-01 22:30:36 +0000 |
|---|---|---|
| committer | Vladimir Kondratyev <wulf@FreeBSD.org> | 2017-11-01 22:30:36 +0000 |
| commit | d52d8bce16a0e2f35a50fe57f4a4f29821f1dbba (patch) | |
| tree | 97dbbcd31f9cb655aebfedcf7abce762d53bac31 /sys/dev/syscons | |
| parent | f3f8069493a5a9db77a5f660f4f9e613742fdc42 (diff) | |
Notes
Diffstat (limited to 'sys/dev/syscons')
| -rw-r--r-- | sys/dev/syscons/sysmouse.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/syscons/sysmouse.c b/sys/dev/syscons/sysmouse.c index 3582ad584a82..8ea0939eb575 100644 --- a/sys/dev/syscons/sysmouse.c +++ b/sys/dev/syscons/sysmouse.c @@ -107,11 +107,11 @@ smdev_evdev_write(int x, int y, int z, int buttons) } break; case EVDEV_SYSMOUSE_T_AXIS_UMS: - /* XXX: Edge triggering should be used here */ - if (buttons & (1 << 5)) + if (buttons & (1 << 6)) evdev_push_rel(sysmouse_evdev, REL_HWHEEL, 1); - else if (buttons & (1 << 6)) + else if (buttons & (1 << 5)) evdev_push_rel(sysmouse_evdev, REL_HWHEEL, -1); + buttons &= ~((1 << 5)|(1 << 6)); /* PASSTHROUGH */ case EVDEV_SYSMOUSE_T_AXIS_NONE: default: |
