Page 1 of 1

Support for gamepads with extra features.

Posted: 27 Feb 2024, 12:28
by x.iso
Hello. I've noticed that current Joystick module is only supporting Dinput or Xinput type of gamepad inputs, but there are other types with Gyroscope and other things that could be utilised. I think DualShock4 and/or Dual Sense have the most of widely supported capabilites, which include touchpad input apart from extra Gyro. other than those, there are Switch Pro and Dualshock3 that have Gyro beside usual sticks.
In all of those Gyro means 3 axis of rotation and 3 axis of accelerometer outputs, so that's a lot of expression that could be utilised for live performance. it's similar to Wiimote gyro basically, and can be used to simulate wiimote in Wii emulators, but I haven't found a way to simulate Wiimote on system level.

I have tried using HID module, but it gives weird outputs and a lot more of them than supposed to be.

Re: Support for gamepads with extra features.

Posted: 28 Feb 2024, 18:13
by oli_lab
Hi !
here is something I did a while ago, for the Dualsense
it needs a dualsenseX running in the background to set the motors
it needs the oli_lab pack as well for the bitwise math

Re: Support for gamepads with extra features.

Posted: 01 Mar 2024, 17:03
by x.iso
oli_lab wrote:
28 Feb 2024, 18:13
Hi !
here is something I did a while ago, for the Dualsense
it needs a dualsenseX running in the background to set the motors
it needs the oli_lab pack as well for the bitwise math
interesting! I don't actually have DualSense for now, but the one I have can work in Switch Pro mode, which provides Gyro data. I could then use additional software to 'convert' it to DS4 if needed. I've tried using HID module for device in Switch Pro mode directly, but I couldn't make sense of the array data. although it does seems like some gyro/accelerometer values are there, but there are also a lot of repeating values for some reason.

Re: Support for gamepads with extra features.

Posted: 01 Mar 2024, 18:24
by oli_lab
HI,
I found out that the data are osbtructed on purpose !
the LSB's and MSB's are all mixed up, that's what appears to repeat. Gyro was particulary a bummer

on the dual sense, the pad works with 2 fingers and is very precise

cheers

Olivar

Re: Support for gamepads with extra features.

Posted: 01 Mar 2024, 20:09
by x.iso
I might get Dual Sense Edge if official or approved Hall-effect sticks will become available for it, for now it's kinda expensive for something with ancient potentiometer sticks tech :shock:
I found out that the data are osbtructed on purpose !
the LSB's and MSB's are all mixed up, that's what appears to repeat. Gyro was particulary a bummer
would you be able to figure out how to line it up? the thing is, apart from repeating indexes, it seems to not show correct scale of those gyro values and so it just wraps around instead of going from supposed min-max

Re: Support for gamepads with extra features.

Posted: 12 Mar 2024, 21:19
by oli_lab
for the edge I don't know, although should be about the same idea of having the MSB and LSB all mixed up.

the price is indeed deterrent !

the dual sense is cheaper though, but I found that these videogame pads are somehow not suited for music as I don't like the way my hands are "tighten" to the pad.