This code enables PS3 wireless devices such as
"Snakebyte PS3 Wireless controller"
to be used under the linux operating system.
Problem description:
The problem this code solves is, that some custom controllers identify themselves as wired controllers, yet drivers like sixad can not initialize the handset upon time of loading. That is, because the handset may not be bound at the time of dongle insertion and driver load.
This code will send the corresponding "put to operational mode" bytes via raw usb to the handset, initializing the device, then, one can load a driver like sixad which identifies the device as regular wired PS3 controller and makes it usable as joypad.