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.

Latest Active Forum Threads

  Thread Views Replies Last Post
AspireOS v.2.2 codename &qu...
in Development General
8140 6 nikos
01/03/2019 08:26
aros-exec no more.
in Site Feedback
3059 11 magorium
10/30/2018 21:39
DELL Latitude D520
in Hardware
3820 34 nikos
10/18/2018 12:57
Pfs3
in Development General
1332 1 cavemann
10/14/2018 18:50
Video Overlay
in Development General
1665 0 nikos
10/02/2018 09:34
USB game controllers
in General Chat
3215 29 nikos
09/30/2018 10:51
Cross/native compiling GCC ...
in General Chat
1276 5 jp48
09/30/2018 04:03
Top bar.
in Site Feedback
976 6 cavemann
09/29/2018 18:03
hello
in Introductions
1013 1 nikos
09/26/2018 05:57
Putting AROSWorld.org for s...
in Public Announcements
13137 4 amigamia
09/24/2018 08:32
A week in AROS...
in Development General
36417 172 magorium
05/28/2017 00:49

USB game controllers

Last updated on 11 months ago
nikos
Dizzy: yes, just like you say :) Tested with original X-Box controller pad.

Lots of stuff like this:


11:20 pm| 0-arosx.class: Msg: 00 14 00 00 00 00 09 0E BF 35 C8 EE 63 06 00 00 00 00 00 00

11:20 pm| 0-arosx.class: Msg: 00 14 00 00 00 00 09 0E 9A 49 C8 EE F2 05 00 00 00 00 00 00

11:20 pm| 0-arosx.class: Msg: 00 14 00 00 00 00 09 0E 7B 60 C8 EE 63 06 00 00 00 00 00 00

11:20 pm| 0-arosx.class: Msg: 00 14 00 00 00 00 9E 0D A2 75 C8 EE F2 05 00 00 00 00 00 00

11:20 pm| 0-arosx.class: Msg: 00 14 00 00 00 00 9E 0D FF 7F C8 EE F2 05 00 00 00 00 00 00

11:20 pm| 0-arosx.class: Msg: 00 14 00 00 00 00 E0 0E FF 7F C8 EE F2 05 00 00 00 00 00 00

11:20 pm| 0-arosx.class: Msg: 00 14 00 00 00 00 A5 12 FF 7F C8 EE F2 05 00 00 00 00 00 00

11:20 pm| 0-arosx.class: Msg: 00 14 00 00 00 00 59 19 FF 7F C8 EE 63 06 00 00 00 00 00 00

11:20 pm| 0-arosx.class: Msg: 00 14 00 00 00 00 BA 21 FF 7F C8 EE F2 05 00 00 00 00 00 00

11:20 pm| 0-arosx.class: Msg: 00 14 00 00 00 00 DA 28 FF 7F C8 EE 63 06 00 00 00 00 00 00

11:20 pm| 0-arosx.class: Msg: 00 14 00 00 00 00 34 2C FF 7F C8 EE F2 05 00 00 00 00 00 00

11:20 pm| 0-arosx.class: Msg: 00 14 00 00 00 00 22 2F 90 7F C8 EE 63 06 00 00 00 00 00 00

11:20 pm| 0-arosx.class: Msg: 00 14 00 00 00 00 F9 2F AD 7B C8 EE F2 05 00 00 00 00 00 00

11:20 pm| 0-arosx.class: Msg: 00 14 00 00 00 00 F9 2F 39 78 C8 EE F2 05 00 00 00 00 00 00

11:20 pm| 0-arosx.class: Msg: 00 14 00 00 00 00 F9 2F E8 73 C8 EE 63 06 00 00 00 00 00 00

11:20 pm| 0-arosx.class: Msg: 00 14 00 00 00 00 F9 2F 97 6F C8 EE F2 05 00 00 00 00 00 00

11:20 pm| 0-arosx.class: Msg: 00 14 00 00 00 00 F9 2F 63 67 C8 EE F2 05 00 00 00 00 00 00

11:20 pm| 0-arosx.class: Msg: 00 14 00 00 00 00 F2 2A FD 43 C8 EE F2 05 00 00 00 00 00 00

11:20 pm| 0-arosx.class: Msg: 00 14 00 00 00 00 17 18 DD 1E C8 EE F2 05 00 00 00 00 00 00

11:20 pm| 0-arosx.class: Msg: 00 14 00 00 00 00 90 03 E6 FB C8 EE F2 05 00 00 00 00 00 00

11:20 pm| 0-arosx.class: Msg: 00 14 00 00 00 00 FB 03 32 FD C8 EE 63 06 00 00 00 00 00 00

11:20 pm| 0-arosx.class: Msg: 00 14 00 00 00 00 FB 03 E6 FB C8 EE F2 05 00 00 00 00 00 00

11:20 pm| 0-arosx.class: Msg: 00 14 00 00 00 00 90 03 BD F9 C8 EE 63 06 00 00 00 00 00 00

11:20 pm| 0-arosx.class: Msg: 00 14 00 00 00 00 FB 03 DB F5 C8 EE 63 06 00 00 00 00 00 00

11:20 pm| 0-arosx.class: Msg: 00 14 00 00 00 00 90 03 ED EB C8 EE F2 05 00 00 00 00 00 00

11:20 pm| 0-arosx.class: Msg: 00 14 00 00 00 00 FB 03 F4 DB C8 EE F2 05 00 00 00 00 00 00

11:20 pm| 0-arosx.class: Msg: 00 14 00 00 00 00 90 03 CD C6 C8 EE 63 06 00 00 00 00 00 00
DizzyOfCRN
Did the values change in any sane way? I think I'll commit tonight the code so far as arosx.class

It doesn't do much, but it has MUI gauges showing the thumb stick movements on devices settings window

At the moment it has no limit on the number of controllers that can be plugged in (should it? We don't even have an API to read the controller to)

On my Logitech controller there are buttons that do not map for XInput, like the mode button(maps dpad as left thumb stick and vice versa) and vibration level button. We can read those too if we like

My Logitech Wireless F710 gamepad goes to sleep if left alone, but it wakes up on a button press of the controller
jyrki.j.koivisto
DizzyOfCRN
Just commited the code. I've not enabled the build for it though, so it won't show up on nightlies

Link for the class is below, it's build for AROS AbiV1.i386

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

And here's a video...

https://youtu.be/SoKrllLuAM4
jyrki.j.koivisto
nikos
Yes Dizzy, the values do change.

Thank for the video. That looks good :)

If lets say Janus-UAE is going to use your class does it need to be compiled again or is it a matter of changing the Janus-UAE configuration file?
DizzyOfCRN

Quote

nikos wrote:

Yes Dizzy, the values do change.

Thank for the video. That looks good :)

If lets say Janus-UAE is going to use your class does it need to be compiled again or is it a matter of changing the Janus-UAE configuration file?


This class should really connect to some sort gamepad library of some sort. If I'd make this class expose a library interface then only xinput gamepads could be used by the library, but if this thing connects to some external gamepad API then everything that connects to that API can be used.

There is no interface yeat to get any output, but I'd imagine that a new compile of said software is needed in order to connect to that something, which we don't have.

EDIT:

Does the new class show gauges moving? Remove all previous xinput.classes if you have them in the class directory or they will fight on the ownership of the usb interface.

There's also some serial debug stuff going on the background, this will hinder the MUI performance as the code prints it's debug. Slowdown if more than one controller is checked in the settings window
jyrki.j.koivisto
nikos
If only xinput devices would work with the new library I don't have problem with that, but it should be compatible with lowlevel, or classic input.
I know the classic stuff is stupid to configure for multible controllers, but I guess it could be fine that only 1 controller is supported that always go for port 1 anyway.

I guess mapping classic with the new lib to different ports might be difficult?

I tried lot's of hid devices and it seams to always be problems unless you are only out for classic 2-3 button joystick and even with classic controllers it is sometimes not possible to configure the buttons and some controllers does not even take me to the config window. They are simply not recoginzed by the hid interface as a controller and it does not help to try to force the class.

All this said it is better to be fully compatilbe with one controller that is easy to find like the xbox controller than making some mess out of lot's not working and others half way working etc.

For my distro "AspireOS" I simply would put in the hardware page that xbox controllers is what is working and others not recommended.
DizzyOfCRN
Updated the linked arosx.class with some fixes, the same link should still work

If not then it's this one:
https://www.dropbox.com/s/rl119qmc5ui...class?dl=1

I will need some advice on how to proceed, maybe those who have actually ported/coded some apps for AROS could shed some light on me on what to do. I have no experience on that field...
jyrki.j.koivisto
nikos
I tried the new class. As you mentioned it is now no debug from the controller. Nothing happen pressing buttons or directions.
When I insert it in usb port it say play it again "controller"
Does that seam ok?
DizzyOfCRN

Quote

nikos wrote:

I tried the new class. As you mentioned it is now no debug from the controller. Nothing happen pressing buttons or directions.
When I insert it in usb port it say play it again "controller"
Does that seam ok?

Sounds about right, there is no automatic popup for the testing window, need to go there manually. There's two ways of opening the window:

https://youtu.be/QoAXisrRg50
jyrki.j.koivisto
DizzyOfCRN
Does the "settings" window open?
jyrki.j.koivisto
DizzyOfCRN
I've enabled some rumble effects on the code. The intensity should vary according to the left thumb stick.

https://www.dropbox.com/s/rl119qmc5ui...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
jyrki.j.koivisto
You can view all discussion threads in this forum.
You can 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 cannot download attachments in this forum.
Moderator: Administrator

Sign In

Not a member yet? Click here to register.

Shoutbox

You must login to post a message.
cavemann
cavemann7 months ago
Happy 2019 !!!
cavemann
cavemann9 months ago
Happy TurkeyDay to all AROS freaks Smile
amigamia
amigamia1 year ago
Smile Decided to renew it for another year. Will see if I can get it to run again
cavemann
cavemann1 year ago
Welcome back, ArosWorld Smile
cavemann
cavemann2 years ago
Wow, another year. Happy 2018 to everybody Smile


Powered by PHP-Fusion Copyright © 2019 PHP-Fusion Inc
Released as free software without warranties under GNU Affero GPL v3.

Bootstrap Theme by PHP-Fusion Inc
3,050,964 unique visits | Memory used: 3.97MB/4.25MB