Difference between revisions of "/dev/usb/kbd"

From WiiBrew
< /dev‎ | usb
Jump to navigation Jump to search
(Starting /dev/usb/kbd page)
 
Line 17: Line 17:
 
|-
 
|-
 
| 00 00 00 00 80
 
| 00 00 00 00 80
| Unknown
+
| Turn off keyboard LEDS.
 
|-
 
|-
 
| ?? ?? ?? ?? 00
 
| ?? ?? ?? ?? 00

Revision as of 14:47, 23 March 2008

Description

/dev/usb/kbd is the interface to the USB keyboard driver.

Reads, seeks and ioctlvs always fail. Writes are used to send commands. Ioctls are used to receive events.

Write

Writes are used the send commands to the driver. Most likely, this is to control keyboard LEDs. Writes are always 5 bytes in length.

Available commands:
Write data Function
00 00 00 00 80 Turn off keyboard LEDS.
?? ?? ?? ?? 00 Unknown
?? ?? ?? ?? 00 Unknown
?? ?? ?? ?? 00 Unknown
?? ?? ?? ?? 00 Unknown

Ioctl

Ioctls can be send to the driver. All parameters are ignored. This appears to be for receiving keyboard events.