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
1664 0 nikos
10/02/2018 09:34
USB game controllers
in General Chat
3214 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
36416 172 magorium
05/28/2017 00:49

USB game controllers

Last updated on 11 months ago
nikos
As things are right now AROS has only basic game controller support.

Would be nice to have a more advanced controller interface where analogue sticks would be supported and a more easy way to configure them.
cavemann
Iirc the lowlevel lib was designed for the Cd32. It can only read 7 buttons per port, it reads the hat or xy analog, but not both, and cannot read z-axis or rotation, Imo, if the lowlevel lib was expanded or redesigned, then joy configuration would not be such a pita.

What have the other Ng systems done?
nikos
OS4 and MorphOS have support for some controllers that is working with 2 analogue sticks and more buttons.

DizzyOfCRN is trying to implement this for AROS too now. He tried to register here so maybe he show up soon :)
DizzyOfCRN
Hi,

Got the controller today to communicate back to the xinput.class

https://youtu.be/ckQKZSz9otM

Only debug prints at the Trident

EDIT: Seems I don't know how to use that video embedding... I'll just leave the link... :o
jyrki.j.koivisto
nikos
It is life :D

Following this with excitement.
DizzyOfCRN
Tested both of my controllers (the F710 and F310) on native installation and they seem to work with the class just fine while plugged in at the same time. Had bit of a trouble with the corded one on housted. It just didn't want to play along... at all...
jyrki.j.koivisto
nikos
Cool :D
I can test my controllers if you give me the class :)
You can send to nik-tom(at)online.no
DizzyOfCRN
Well I'd like it to be somewhat more mature than what it is now... I've barely changed a couple of lines from one existing Poseidon class to be frank... Well, I emptied most of the code away from one and did some MUI gui's

If it wasn't for my gcc 8 point something It would only take two lines altered to get some input from the controller... :) Now the bare minimum is 4 lines...

For this to be of any use the games would need a mechanism to get to the controller, I think I'll go the XInput API way and provide a simple library for four players.

Whenever a gamepad is inserted it tries to take one of location from the four provided. If there's no room then it won't be used (or somehow unused needs to be purged)

Game could then query for the controller (just gamepad for now) and allocate it to use. A call to get the controller state is also provided, very much the same as in XInput. No need to over complicate things.

https://docs.microsoft.com/en-us/windows/desktop/xinput/getting-started-with-xinput
jyrki.j.koivisto
DizzyOfCRN
For the rumble effects we need a couple of more lines of code. The interface to the gamepad is really, really simple. More simple than what I first thought. This is good for us as I'm pretty confident that we can cook something up!

I'm assuming that a full XInput API isn't wanted? We could make this what ever we want.
jyrki.j.koivisto
nikos
Dizzy: Ok :) Just tell me when you have something ready you want me to test.
Little off topic but in Triden I have tried to configure 2 pads using the hid interface to play 2 player games in Janus-uae. I configure everything to the right ports. That is 1 and 0 and also configure this in Janus-UAE.
What happen is that the trigger button works on both ports but for port 0 I can not controll or stear anything. For port 1 everything works good.
Any clue if this is triden or janus-uae fault? Is there any other way to test this?
DizzyOfCRN

Quote

nikos wrote:

Cool :D
I can test my controllers if you give me the class :)
You can send to nik-tom(at)online.no

I've send you the class, compiled for AbiV1.i386 :) How is it working there?

If you press on the analog stick then there will be a lot of debug messages and at least here the Trident can't really keep up showing them, but it's just because it prints so much.

There is no wakeup code to the gamepad, that is if it is on somekind of sleep state then it will remain so and no output appears at the Trident log
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,575 unique visits | Memory used: 4MB/4.25MB