Project

General

Profile

Submit #2921

Allow moused to accept userland mouse events

Added by tautolog 10 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Userland
Target version:
Start date:
06/10/2016
Due date:
% Done:

0%


Description

Allow moused to work with sysmouse when the port is a pipe,
not a real mouse device with working ioctls. Allows simple userland injection
of mouse events.

Attached is an example that works with the Griffin PowerMate
https://www.amazon.com/Griffin-Technology-NA16029-Multimedia-Controller/dp/B003VWU2WA/

Just run `./scrollwheel.py scroller.fifo` as a user account, and then run `moused -p scroller.fifo -t sysmouse` as root.

If you press down the wheel, it will multiply scrolls by 32, so you can fly through code like in the movies.

0001-Allow-moused-to-work-with-sysmouse-when-the-port-is-.patch View - trivial fix for moused (1.41 KB) tautolog, 06/10/2016 02:30 PM

scrollwheel.py View - example that maps a volume knob USB HID device to scrolling mouse events (2.8 KB) tautolog, 06/10/2016 02:31 PM

Also available in: Atom PDF