Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.

USB game controllers

Last updated on 5 years ago
DizzyOfCRNDizzyOfCRNAROS Dev
Posted 5 years ago
Does the "settings" window open?
DizzyOfCRNDizzyOfCRNAROS Dev
Posted 5 years ago
I've enabled some rumble effects on the code. The intensity should vary according to the left thumb stick.

https://www.dropbox.com/s/rl119qmc5uinl4o/arosx.class?dl=1

Works for Logitech F710 at least, not sure if the class even shows any output on other XInput gamepads...

https://youtu.be/NilG2XIYygM
nikosnikosDistro Maintainer
Posted 5 years ago
Yes, it open :)

https://m.youtube..._IA9sI5mek

Maybe needs calibration?

edit: with the rumble update my controller rumble all the time like crazy. Little less if I move the left stick upwards. Calibration :)
Edited by nikos on 28-09-2018 11:57, 5 years ago
DizzyOfCRNDizzyOfCRNAROS Dev
Posted 5 years ago
So the rumble even works? :)

My Logitech outputs somewhere 0 at the center so it doesn't shake very much at that position, but the original controller has a different zero position (well, it actually looks the same when your thumb sticks are centered...). It was just a test to see if the rumble works other than my controller. Thank you very much!
DizzyOfCRNDizzyOfCRNAROS Dev
Posted 5 years ago
My Wireless F710 has worse thumb sticks than on it's counterpart the F310.
F710 doesn't always return the value to center, but the F310 does.

It brutally shows how bad the sticks have gone.

Some kind of calibration would be nice, I will look into that too. At least it could be good to find the dead band around the center. Maybe some routine that asks to push fully on one direction and then let go. Timer would start from zero every time a new message arrives and lets say if 100mS has elapsed from the last message then the code would look where the stick has last left it markings and do that many times and we should be able to find the dead band.
nikosnikosDistro Maintainer
Posted 5 years ago
Thank sounds perfect Dizzy :)
Thanks for doing this.
DizzyOfCRNDizzyOfCRNAROS Dev
Posted 5 years ago
I think I found how to get the bitmask for all the inputs on XInput gamepads and that there even is such a bitmask...
Haven't seen that mentioned in anywhere :)

I didn't put any buttons on that settings window that tests the inputs as I didn't know how many buttons each controller has

I think we even now know if the controller is wired or wireless! Important, as we need to inform the controller api about it.
Edited by DizzyOfCRN on 29-09-2018 13:28, 5 years ago
nikosnikosDistro Maintainer
Posted 5 years ago
BlueTooth is not supported in AROS. I know some XBox controllers use that protocol, but others might use IR or maybe WiFi?

Guess to be safe, cable is the way to go. I guess wireless XBox controller also can be connected with USB cable?
DizzyOfCRNDizzyOfCRNAROS Dev
Posted 5 years ago
My wireless and wired controllers both work at this moment.

There is a 2.4GHz dongle for xbox controller pc use. It's luckily not bluetooth so it might even work.

Not sure if the bit showing controller as wireless is always at the same location, needs testing.

Do you have wireless controller?

I will be putting out new test for the arosx, showing if the wireless check works and getting some more needed info for the xinput descriptor parser.
nikosnikosDistro Maintainer
Posted 5 years ago
No Wireless XBox controllers at the moment. I have one arcade stick wireless that works fine, but that is hid controller.
You can view all discussion threads in this forum.
You cannot start a new discussion thread in this forum.
You cannot reply in this discussion thread.
You cannot start on a poll in this forum.
You cannot upload attachments in this forum.
You can download attachments in this forum.
Moderator: Administrator
Users who participated in discussion: cavemann, DizzyOfCRN, nikos
Sign In
Not a member yet? Click here to register.
Forgot Password?
Users Online Now
Guests Online 11
Members Online 0

Total Members: 216
Newest Member: Farox
Member Polls
Should AROSWorld continue with AROS-Exec files (SMF based)?
Yes44 %
44% [12 Votes]
No26 %
26% [7 Votes]
Not sure30 %
30% [8 Votes]