Rumble and wireless assistance

USB Joystick driver for RISC OS 5
richw
Posts: 186
Joined: Sat Sep 14, 2013

Re: Rumble and wireless assistance

Post by richw »

Excellent, thanks Jon. I was starting to wonder if a BASIC program would be helpful - just asking you to try things, then press a key etc. But maybe this is is workable-ish as-is.

Can you try the attached version? I've put in a retry mechanism to try and cope with the 'stall' situation. It looks like USBDriver and EtherUSB do similar. So far, I've been mainly doing USB reads, which are dead easy, and it seems that certain writes are not so straightforward. It should capture in Reporter if it's failing, and what's going on with retries/stalls. This is applied to all comms (apart from the basic 'read inputs', which has been there since day 1) so maybe things like the device product/manufacturer strings will return correctly now?

The player LED/ring should also now be automatic. After you attach a controller, it should be 'player 1', another will be 'player 2' etc. Does that work? It will spit out stuff in Reporter as it goes.

Does the rumble command work properly? Is the first motor the big one, and the second the small one? (it is on my PSX pad) Does it still work if you disconnect and later re-connect a controller?

If anyone here has a PS3 pad, it would be nice to know if that works.
Attachments
usbjtest5.zip
(40.23 KiB) Downloaded 3 times
richw
Posts: 186
Joined: Sat Sep 14, 2013

Re: Rumble and wireless assistance

Post by richw »

Ah, I've spotted an off-by-one error in the PS3 pad detection, which might explain why they don't work. A possible fix is in this build.
Attachments
usbjtest6.zip
(40.33 KiB) Downloaded 4 times
grannyg
Posts: 21
Joined: Fri Dec 13, 2013

Re: Rumble and wireless assistance

Post by grannyg »

I tried plugging in a PS3 controller but no joy!

It shows up with usbdevices OK.

3 1 3 0/ 0 Sony PLAYSTATION(R)3 Controller

USB release : 0200
Device class : 00
Device subclass : 00
Device protocol : 00
Max packet size : 40
Vendor ID : 054C
Product ID : 0268
Device ID : 0100
# of configs : 1
Manufacturer : 'Sony'
Product : 'PLAYSTATION(R)3 Controller'
Serial number : ''
Speed : Full
grannyg
Posts: 21
Joined: Fri Dec 13, 2013

Re: Rumble and wireless assistance

Post by grannyg »

Also tried the rumble test with a PS4 controller.

*usbjoystick_rumble 0 65535 0 800
Joystick does not support rumble

*usbjoystick_list
Joystick slot 0 (Sony Interactive Entertainment - Wireless Controller)
Local USB device name : USB7
Interface : 3
Endpoint : 4
Device manufacturer : Sony Interactive Entertainment
Device product name : Wireless Controller
Device serial number :
Driver : Standard HID controller (no boot)
Capabilities : None
Number of axes : 8
Number of buttons : 14
HAT switch : Yes
DPAD : No
grannyg
Posts: 21
Joined: Fri Dec 13, 2013

Re: Rumble and wireless assistance

Post by grannyg »

Same for a PS5 controller.

*usbjoystick_rumble 0 65535 0 800
Joystick does not support rumble

*usbjoystick_list
Joystick slot 0 (Sony Interactive Entertainment - DualSense Wireless Controller)
Local USB device name : USB8
Interface : 3
Endpoint : 4
Device manufacturer : Sony Interactive Entertainment
Device product name : DualSense Wireless Controller
Device serial number :
Driver : Standard HID controller (no boot)
Capabilities : None
Number of axes : 6
Number of buttons : 0
HAT switch : No
DPAD : No
richw
Posts: 186
Joined: Sat Sep 14, 2013

Re: Rumble and wireless assistance

Post by richw »

Not really thought much about the PS5 controller yet, but I was hoping the PS3 one might work. Is that with the latest download on here? (test6)

Can you run Reporter (http://www.avisoft.force9.co.uk/Reporter.htm) and capture the output when you connect the pad? (if it's already connected, just disconnect it first, load Reporter, then re-connect)
Post Reply