version 1.4, 2002/05/10 00:09:17 |
version 1.5, 2002/11/14 02:57:28 |
|
|
example the |
example the |
.Qq button 2 |
.Qq button 2 |
item would usually just be referred to on the command line as: |
item would usually just be referred to on the command line as: |
.Dl usbhidctl -f /dev/mouse Mouse.Pointer.Button_2 |
.Dl $ usbhidctl -f /dev/mouse Mouse.Pointer.Button_2 |
.Pp |
.Pp |
Items can also be named by referring to parts of the item name with the |
Items can also be named by referring to parts of the item name with the |
numeric representation of the native HID usage identifiers. This is most |
numeric representation of the native HID usage identifiers. This is most |
|
|
is 2, so the following can be used to refer to the |
is 2, so the following can be used to refer to the |
.Qq button 2 |
.Qq button 2 |
item: |
item: |
.Dl usbhidctl -f /dev/mouse 1:Mouse.1:Pointer.Button:2 |
.Dl $ usbhidctl -f /dev/mouse 1:Mouse.1:Pointer.Button:2 |
.Pp |
.Pp |
Devices with human interface outputs can be manipulated with the |
Devices with human interface outputs can be manipulated with the |
.Fl w |
.Fl w |
|
|
control as usage 2 under page 0xffff, in the |
control as usage 2 under page 0xffff, in the |
.Qq Mouse |
.Qq Mouse |
collection. The following can be used to switch this LED off: |
collection. The following can be used to switch this LED off: |
.Dl usbhidctl -f /dev/mouse -w Mouse.0xffff:2=0 |
.Dl $ usbhidctl -f /dev/mouse -w Mouse.0xffff:2=0 |
.Sh SEE ALSO |
.Sh SEE ALSO |
.Xr usbhidaction 1 , |
.Xr usbhidaction 1 , |
.Xr usbhid 3 , |
.Xr usbhid 3 , |