Browsing this Thread:
1 Anonymous Users
|
Re: USB joystick and posseidon
|
||||
|---|---|---|---|---|
|
Home away from home
![]() |
Then again, it's better if I check my own endian conversions before going on a ghost hunt... :)
Posted on: 2018/10/2 6:59
|
|||
|
||||
|
Re: USB joystick and posseidon
|
||||
|---|---|---|---|---|
|
Home away from home
![]() |
Dizzy: Don't worry. I can use it for other stuff if this gets to difficult :)
Posted on: 2018/10/2 6:58
|
|||
|
www.aspireos.com
|
||||
|
||||
|
Re: USB joystick and posseidon
|
||||
|---|---|---|---|---|
|
Home away from home
![]() |
Quote:
Oh no... Now I got myself some pressure... Asked wife couple of days ago if I could buy one also, she said no... :( I'm trying to figure out the analog thumb stick values. This is what I get when nothing is touched and all the sticks are dead center, left thumbstick value marked in []-pair EPIn: 00 14 00 00 00 00[80 00]80 00 80 00 80 00 b4 00 55 00 00 00 And here's the trail coming back slowly: (or the other way round...) EPIn: 00 14 00 00 00 00[a9 29]80 00 80 00 80 00 b4 00 55 00 00 00 EPIn: 00 14 00 00 00 00[a7 27]80 00 80 00 80 00 b4 00 55 00 00 00 EPIn: 00 14 00 00 00 00[a6 26]80 00 80 00 80 00 b4 00 55 00 00 00 EPIn: 00 14 00 00 00 00[a3 23]80 00 80 00 80 00 b4 00 55 00 00 00 EPIn: 00 14 00 00 00 00[9f 1f]80 00 80 00 80 00 b4 00 55 00 00 00 EPIn: 00 14 00 00 00 00[9c 1c]80 00 80 00 80 00 b4 00 55 00 00 00 EPIn: 00 14 00 00 00 00[9b 1b]80 00 80 00 80 00 b4 00 55 00 00 00 EPIn: 00 14 00 00 00 00[99 19]80 00 80 00 80 00 b4 00 55 00 00 00 EPIn: 00 14 00 00 00 00[97 17]80 00 80 00 80 00 b4 00 55 00 00 00 EPIn: 00 14 00 00 00 00[96 16]80 00 80 00 80 00 b4 00 55 00 00 00 EPIn: 00 14 00 00 00 00[94 14]80 00 80 00 80 00 b4 00 55 00 00 00 EPIn: 00 14 00 00 00 00[93 13]80 00 80 00 80 00 b4 00 55 00 00 00 EPIn: 00 14 00 00 00 00[8c 0c]80 00 80 00 80 00 b4 00 55 00 00 00 EPIn: 00 14 00 00 00 00[89 09]80 00 80 00 80 00 b4 00 55 00 00 00 EPIn: 00 14 00 00 00 00[87 07]80 00 80 00 80 00 b4 00 55 00 00 00 EPIn: 00 14 00 00 00 00[86 06]80 00 80 00 80 00 b4 00 55 00 00 00 EPIn: 00 14 00 00 00 00[84 04]80 00 80 00 80 00 b4 00 55 00 00 00 EPIn: 00 14 00 00 00 00[83 03]80 00 80 00 80 00 b4 00 55 00 00 00 EPIn: 00 14 00 00 00 00[81 01]80 00 80 00 80 00 b4 00 55 00 00 00 EPIn: 00 14 00 00 00 00[80 00]80 00 80 00 80 00 b4 00 55 00 00 00 It clearly isn't a 16-bit (as if there really would be 16-bit ADC) value and purely just adjusting for the endianess isn't enough. There are HUGE leaps in the values 0xa929 goes 0xa727 (or 0x29a9 goes to 0x27a7)
Posted on: 2018/10/2 6:53
Edited by DizzyOfCRN on 2018/10/2 7:42:04
|
|||
|
||||
|
Re: USB joystick and posseidon
|
||||
|---|---|---|---|---|
|
Home away from home
![]() |
I got a xbox 360 WiFi controller now but had to order a USB PC reciver. That might take some time to arrive. I see on the controller that it got in the middle a button that I guess is used to connect up to 4 players Wireless.
Posted on: 2018/10/1 18:05
|
|||
|
www.aspireos.com
|
||||
|
||||
|
Re: USB joystick and posseidon
|
||||
|---|---|---|---|---|
|
Home away from home
![]() |
When I configured a hid joypad from trident using analogue hack I had to adjust the analogue sticks to have them working correct. There is a way, but not userfriendly.
Posted on: 2018/10/1 11:35
|
|||
|
www.aspireos.com
|
||||
|
||||
|
Re: USB joystick and posseidon
|
||||
|---|---|---|---|---|
|
Home away from home
![]() |
At this point I could have made the class only accept certain devices and patch the lowlevel.library, but I've started to be real anal about it.
It bothers me that the analog value is 0x80 when at center. There may even be a fine and coarse output on the analog thumb sticks.
Posted on: 2018/10/1 9:54
|
|||
|
||||
|
Re: USB joystick and posseidon
|
||||
|---|---|---|---|---|
|
Home away from home
![]() |
At this point I could have made the class only accept certain devices and patch the lowlevel.library, but I've started to be real anal about it.
It bothers me that the analog value is 0x80 when at center. There may even be a fine and coarse output on the analog thumb sticks. It would seem silly if the ADC's be really 16-bit wide. I think they are 8-bit wide and cleverly mapped as 16-bit with fine and coarse output.
Posted on: 2018/10/1 9:54
Edited by DizzyOfCRN on 2018/10/1 11:15:47
|
|||
|
||||
|
Re: USB joystick and posseidon
|
||||
|---|---|---|---|---|
|
Home away from home
![]() |
If I recall it correctly, Windows gives a wrong number of digital buttons on my Logitech F710 and F310. There's one button that won't work. It may be an error in part of Logitech XInput descriptor. Have to check that again.
Posted on: 2018/9/30 9:00
|
|||
|
Jyrki.J.Koivisto
|
||||
|
||||
|
Re: USB joystick and posseidon
|
||||
|---|---|---|---|---|
|
Home away from home
![]() |
Hehe, nope. It was just a couple of long drinks for the occasion. After all I need to be back at the sweatshop today at 13:30 and let the other monkeys go home...
I need to alter the code a little bit as not to bind anything else than a interface that has XInput descriptor, even if forced. I have a hunch that the XInput descriptor is a index of some sort to the bitmask we got, I assume it tells the number of nibbles or something for the number of digital and analog things when counted upon.
Posted on: 2018/9/30 7:52
|
|||
|
Jyrki.J.Koivisto
|
||||
|
||||
You can view topic.
You cannot start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.
You cannot use topic type.
You cannot use HTML syntax.
You cannot use signature.
You cannot create PDF files.
You cannot get print page.





