The HID descriptor defines:
– 4 axis (x, y, z, rz)
– 1 hat switch
– 12 buttons
There are 13 buttons on a ps3 controller.
PS3 button is not very useful, omitting it allows avoiding padding.
/* Usage Page (Generic Desktop)*/ 0x05, 0x01,
/*Usage (Joystick)*/ 0x09, 0x04,
/*Collection (Application)*/ 0xA1, 0x01,
/*Collection (Logical)*/ 0xA1, 0x02,
/*Logical Minimum (0)*/ 0x15, 0x00,
/*Logical Maximum (255)*/ 0x26, 0xFF, 0x00,
/*Physical Minimum (0)*/ 0x35, 0x00,
/*Physical Maximum (255)*/ 0x46, 0xFF, 0x00,
/*Report Size (8)*/ 0x75, 0x08,
/*Report Count (4)*/ 0x95, 0x04,
/*Usage (X)*/ 0x09, 0x30,
/*Usage (Y)*/ 0x09, 0x31,
/*Usage (Z)*/ 0x09, 0x32,
/*Usage (Rz)*/ 0x09, 0x35,
/*Input (Data,Var,Abs,NWrp,Lin,Pref,NNul,Bit)*/ 0x81, 0x02,
/*Logical Maximum (7)*/ 0x25, 0x07,
/*Physical Maximum (315)*/ 0x46, 0x3B, 0x01,
/*Report Size (4)*/ 0x75, 0x04,
/*Report Count (1)*/ 0x95, 0x01,
/*Unit (Eng Rot: Degree)*/ 0x65, 0x14,
/*Usage (Hat Switch)*/ 0x09, 0x39,
/*Input (Data,Var,Abs,NWrp,Lin,Pref,Null,Bit)*/ 0x81, 0x42,
/*Unit (None)*/ 0x65, 0x00,
/*Logical Maximum (1)*/ 0x25, 0x01,
/*Physical Maximum (1)*/ 0x45, 0x01,
/*Report Size (1)*/ 0x75, 0x01,
/*Report Count (12)*/ 0x95, 0x0C,
/*Usage Page (Button)*/ 0x05, 0x09,
/*Usage Minimum (Button 1)*/ 0x19, 0x01,
/*Usage Maximum (Button 12)*/ 0x29, 0x0C,
/*Input (Data,Var,Abs,NWrp,Lin,Pref,NNul,Bit)*/ 0x81, 0x02,
/*End Collection*/ 0xC0,
/*End Collection*/ 0xC0
Above screenshot shows the result of this hid device with jstest-gtk as joystick calibration program (axis 4-5 are not relevant).
buy cheap generic baycip – brand keflex 250mg oral augmentin 1000mg
buy baycip without a prescription – buy augmentin generic purchase amoxiclav for sale
buy flagyl 200mg pill – amoxicillin cheap buy zithromax 500mg
ciprofloxacin buy online – ciprofloxacin 500mg generic buy generic erythromycin online
buy valacyclovir 500mg generic – nateglinide 120 mg over the counter order zovirax 400mg pill
ivermectin oral – order co-amoxiclav pill purchase tetracycline online cheap
flagyl online buy – metronidazole 400mg us buy azithromycin 250mg
order ampicillin generic generic amoxil cheap amoxicillin sale
buy lasix 40mg for sale – where can i buy warfarin buy capoten sale
buy zidovudine pills – buy epivir 100 mg online how to get zyloprim without a prescription
buy glucophage 500mg pills – cheap glucophage 500mg lincomycin for sale
clozapine online buy – buy accupril 10 mg online cheap pepcid usa
order quetiapine sale – buy desyrel 100mg sale buy generic eskalith
oral atarax – order escitalopram 10mg pills order endep 25mg pills
buy clomipramine without prescription – duloxetine 40mg usa order doxepin 75mg generic
order amoxicillin sale – duricef 250mg uk cipro price
clavulanate where to buy – ciprofloxacin 1000mg brand buy cipro 500mg online
buy cleocin paypal – terramycin 250 mg tablet cheap chloromycetin
azithromycin online – metronidazole 200mg without prescription generic ciprofloxacin
order albuterol inhalator online cheap – promethazine 25mg pills theophylline 400mg sale
buy ivermectin canada – purchase cefaclor generic buy cefaclor 500mg online
clarinex for sale – flixotide ca albuterol online order