KurtE
Senior Member+
@defragster - I guess I should see why my computer is still on 1803?
@mjs513 - yep the FF00-FFF is vendor specific... Which is always fun.
And Yes it is fun when even things like Sony is for example even Sony is not consistent between their own products... Example PS3...
The Hat: shows up as 4 buttons (0x10 up, 20 right, 40 down 80 left)... But also shows up in axis for pressure values in 14, 15, 16, 17
But then PS4: They don't show up as buttons at all, it does update the HAT axis 0x39 with values like 0x08 nothing pressed, 0x0 if up press, 2 right, 4 down, 6 left
But then look at its description and you see:
Which I am not really processing correctly... As we really should be processing this like:
So UP button is 0/7*315 = 0 degrees,
Right2/7*315 = 90 degrees.
Down 4/7*315 = 180
left = 6/7*315 = 270
...
@mjs513 - yep the FF00-FFF is vendor specific... Which is always fun.
And Yes it is fun when even things like Sony is for example even Sony is not consistent between their own products... Example PS3...
The Hat: shows up as 4 buttons (0x10 up, 20 right, 40 down 80 left)... But also shows up in axis for pressure values in 14, 15, 16, 17
But then PS4: They don't show up as buttons at all, it does update the HAT axis 0x39 with values like 0x08 nothing pressed, 0x0 if up press, 2 right, 4 down, 6 left
But then look at its description and you see:
Code:
Usage (Hat Switch), ; Hat switch (39h, dynamic value)
Logical Minimum (0),
Logical Maximum (7),
Physical Minimum (0),
Physical Maximum (315),
Unit (Degrees),
Report Size (4),
Report Count (1),
Input (Variable, Null State),
Unit,
So UP button is 0/7*315 = 0 degrees,
Right2/7*315 = 90 degrees.
Down 4/7*315 = 180
left = 6/7*315 = 270
...