Welcome to %s forums

BrainModular Users Forum

Login Register

Support for gamepads with extra features.

Tell us what you'd like Usine to do
Post Reply
User avatar
x.iso
Member
Posts: 565
Location: RU, Saint-Petersburg
Contact:

Support for gamepads with extra features.

Unread post by x.iso » 27 Feb 2024, 12:28

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.
join Hollyhock Usine Discord server: https://discord.gg/EdJarnE

User avatar
oli_lab
Member
Posts: 1261
Location: Brittany, France
Contact:

Unread post by oli_lab » 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
Attachments
dualsense.pat
for dualsense !
(424.96 KiB) Downloaded 425 times
http://oli-lab.org

Win11 Ryzen9/32GB RAM - RME MADIFACE - SSL alpha link 4-16 - OSC capable interfaces

follow OLI_LAB adventures on Mastodon
@olivar_premier@mastodon.social

User avatar
x.iso
Member
Posts: 565
Location: RU, Saint-Petersburg
Contact:

Unread post by x.iso » 01 Mar 2024, 17:03

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.
join Hollyhock Usine Discord server: https://discord.gg/EdJarnE

User avatar
oli_lab
Member
Posts: 1261
Location: Brittany, France
Contact:

Unread post by oli_lab » 01 Mar 2024, 18:24

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
http://oli-lab.org

Win11 Ryzen9/32GB RAM - RME MADIFACE - SSL alpha link 4-16 - OSC capable interfaces

follow OLI_LAB adventures on Mastodon
@olivar_premier@mastodon.social

User avatar
x.iso
Member
Posts: 565
Location: RU, Saint-Petersburg
Contact:

Unread post by x.iso » 01 Mar 2024, 20:09

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
join Hollyhock Usine Discord server: https://discord.gg/EdJarnE

User avatar
oli_lab
Member
Posts: 1261
Location: Brittany, France
Contact:

Unread post by oli_lab » 12 Mar 2024, 21:19

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.
http://oli-lab.org

Win11 Ryzen9/32GB RAM - RME MADIFACE - SSL alpha link 4-16 - OSC capable interfaces

follow OLI_LAB adventures on Mastodon
@olivar_premier@mastodon.social

Post Reply

Who is online

Users browsing this forum: No registered users and 13 guests