mhub - converts LibGII events to mouse protocol or mhub data
mhub reads pointer events from the LibGII default device and outputs mouse
protocol data and/or mhub data to the specified files.
The default device is specified with the GII_INPUT environment variable,
see the libgii(7) manual for more info.
displays this help and exit
output version information and exit
print contents of received events to standard error
terminate program when a SIGPIPE signal is received.
The default is to ignore SIGPIPE.
only generate mhub events for buttons >= BUTNR. The default is 4.
output mhub events to FILE
output PS/2 format data to FILE
output (serial) IntelliMouse format data to FILE
output MouseSystems format data to FILE
-r FROM TO
remap button FROM to button TO
transform wheel up motion to a BUTNR mhub event
transform wheel down motion to a BUTNR mhub event
A maximum of 20 mhub event outputs and 20 mouse data outputs are supported.
The number of remaps are unlimited and all remaps occur before any other
Mouse data outputs may all use different protocols.