Search found 79 matches

by richw
Tue Apr 03, 2018 1:16 pm
Forum: Pi
Topic: USB Joystick driver
Replies: 112
Views: 8707

Re: USB Joystick driver

@Jon: Your joystick which is returning diff values... can you tell me the min/max/mid values from *USBJoystick_Read/List/Debug? I think I print those things out in one of those commands (read rings a bell).
by richw
Mon Apr 02, 2018 11:35 pm
Forum: Pi
Topic: USB Joystick driver
Replies: 112
Views: 8707

Re: USB Joystick driver

Jon, yeah, I will put those in. Sounds like a plan. Will any of those games do to test? I guess I can always knock up a bit of BASIC to confirm. I shall have to look at the scaling again, as I thought that was licked! Not sure I will have a chance tomorrow, but should on Wed. Thanks for trying, chaps!
by richw
Sun Apr 01, 2018 8:54 pm
Forum: Pi
Topic: USB Joystick driver
Replies: 112
Views: 8707

Re: USB Joystick driver

I've just released 0.05 which I'm hoping will sort out the scaling in the Acorn (and Jon's RTFM) method. Vanfanel: can you give it a whirl and see if your funny positioning problem is fixed? Chris: When Jon mentioned his XBOX controllers, I did a bit of research. Looks like these (and certain PlaySt...
by richw
Sun Apr 01, 2018 6:21 pm
Forum: Pi
Topic: USB Joystick driver
Replies: 112
Views: 8707

Re: USB Joystick driver

Phew, I wasn't going too mad there with the hotplug! I have a better idea for the scaling, which I will try and implement this evening. I need to offset as well as scale, as not all devices use 0 as their centre. Vanfanel: I was going going to suggest you try 0.04 since your descriptors suggested it...
by richw
Sat Mar 31, 2018 10:38 pm
Forum: Pi
Topic: USB Joystick driver
Replies: 112
Views: 8707

Re: USB Joystick driver

Jon, the hotplug works with my May flash device, and USBJoystick_List 0 and also USBJoystick_Debug 0 show me the file handle open and data RX upcalls going on. Can you see anything odd in those commands when you run it? Is there anything in the Reporter output? Also, what is the scale factor showing...
by richw
Sat Mar 31, 2018 10:08 pm
Forum: Pi
Topic: USB Joystick driver
Replies: 112
Views: 8707

Re: USB Joystick driver

Bah. I wonder if I have managed to upload the wrong version! I shall see if I can have a quick look...
by richw
Sat Mar 31, 2018 7:30 pm
Forum: Pi
Topic: USB Joystick driver
Replies: 112
Views: 8707

Re: USB Joystick driver

Thanks. I shall mull over the SWI issue.

I have just posted 0.04 which I hope is better regarding HID parsing (reportid) and hotplug. I wanted to test the scaling, but my analogue stick is intermittent. I think I need a powered USB hub for my Pi.
by richw
Fri Mar 30, 2018 11:05 pm
Forum: Pi
Topic: USB Joystick driver
Replies: 112
Views: 8707

Re: USB Joystick driver

I've only had a little time to play, but the reportid does look to be the key. I have been trying different values, and even had my psx pad spring into life. That actually has analogue sticks on it too, so it should be another good test. My other device was pure digital (hat). I have started craftin...
by richw
Fri Mar 30, 2018 2:22 pm
Forum: Pi
Topic: USB Joystick driver
Replies: 112
Views: 8707

Re: USB Joystick driver

I agree that it looks to be down to reportid. I have not had much chance to play (hopefully later), and the reportid is exactly one byte, so would explain your offset. I am nervous about hacking the netbsd code, since that should be solid. I think it is my calling function, which isn't coping with c...
by richw
Thu Mar 29, 2018 11:12 pm
Forum: Pi
Topic: USB Joystick driver
Replies: 112
Views: 8707

Re: USB Joystick driver

I thought I read somewhere that the reports were padded out to always be byte aligned. Perhaps I have imagined it?!

I will continue with my PSX pad tomorrow evening. I only get an hour here and there, as developing professionally limits your enthusiasm for keeping going in your own time!