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.

General Chat

General Chat
973 posts | Last Activity on 28-09-2018 13:27 by nikos
nikos
nikos 28-09-2018 13:27, 6 years ago
Re: USB game controllers
Thank sounds perfect Dizzy :) Thanks for doing this.
Responded in USB game controllers
DizzyOfCRN
DizzyOfCRN 28-09-2018 13:14, 6 years ago
Re: USB game controllers
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.
Responded in USB game controllers
DizzyOfCRN
DizzyOfCRN 28-09-2018 12:10, 6 years ago
Re: USB game controllers
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!
Responded in USB game controllers
nikos
nikos 28-09-2018 11:50, 6 years ago
Re: USB game controllers
Yes, it open :) https://m.youtube.com/watch?v=X_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 :)
Responded in USB game controllers
DizzyOfCRN
DizzyOfCRN 28-09-2018 10:28, 6 years ago
Re: USB game controllers
I've enabled some rumble effects on the code. The intensity should vary according to the left thumb stick. [url]https://www.dropbox.com/s/rl119qmc5uinl4o/arosx.class?dl=1[/url] Works for Logitech F710 at least, not sure if the class even shows any output on other XInput gamepads... [url]https://youtu.be/NilG2XIYygM[/url]
Responded in USB game controllers
DizzyOfCRN
DizzyOfCRN 28-09-2018 05:43, 6 years ago
Re: USB game controllers
Does the "settings" window open?
Responded in USB game controllers
DizzyOfCRN
DizzyOfCRN 27-09-2018 21:51, 6 years ago
Re: USB game controllers
[quote][url=http://arosworld.org/forum/viewthread.php?thread_id=165&pid=1034#post_1034][b]nikos wrote:[/b][/url] 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?[/quote] 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: [url]https://youtu.be/QoAXisrRg50[/url]
Responded in USB game controllers
nikos
nikos 27-09-2018 15:04, 6 years ago
Re: USB game controllers
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?
Responded in USB game controllers
DizzyOfCRN
DizzyOfCRN 27-09-2018 05:56, 6 years ago
Re: USB game controllers
Updated the linked arosx.class with some fixes, the same link should still work If not then it's this one: [url]https://www.dropbox.com/s/rl119qmc5uinl4o/arosx.class?dl=1[/url] 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...
Responded in USB game controllers
nikos
nikos 27-09-2018 05:48, 6 years ago
Re: USB game controllers
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.
Responded in USB game controllers
DizzyOfCRN
DizzyOfCRN 27-09-2018 04:26, 6 years ago
Re: USB game controllers
[quote][url=http://arosworld.org/forum/viewthread.php?thread_id=165&pid=1029#post_1029][b]nikos wrote:[/b][/url] 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?[/quote] 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
Responded in USB game controllers
nikos
nikos 27-09-2018 04:12, 6 years ago
Re: USB game controllers
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?
Responded in USB game controllers
DizzyOfCRN
DizzyOfCRN 27-09-2018 02:36, 6 years ago
Re: USB game controllers
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 [url]https://www.dropbox.com/s/rl119qmc5uinl4o/arosx.class?dl=1[/url] And here's a video... [url]https://youtu.be/SoKrllLuAM4[/url]
Responded in USB game controllers
DizzyOfCRN
DizzyOfCRN 27-09-2018 02:23, 6 years ago
Re: USB game controllers
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
Responded in USB game controllers
nikos
nikos 26-09-2018 17:18, 6 years ago
Re: USB game controllers
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
Responded in USB game controllers
DizzyOfCRN
DizzyOfCRN 26-09-2018 13:57, 6 years ago
Re: USB game controllers
[quote][url=http://arosworld.org/forum/viewthread.php?thread_id=165&pid=1011#post_1011][b]nikos wrote:[/b][/url] Cool :D I can test my controllers if you give me the class :) You can send to nik-tom(at)online.no[/quote] 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
Responded in USB game controllers
nikos
nikos 26-09-2018 13:51, 6 years ago
Re: USB game controllers
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?
Responded in USB game controllers
DizzyOfCRN
DizzyOfCRN 26-09-2018 13:00, 6 years ago
Re: USB game controllers
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.
Responded in USB game controllers
DizzyOfCRN
DizzyOfCRN 26-09-2018 12:23, 6 years ago
Re: USB game controllers
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
Responded in USB game controllers
J
jp48 26-09-2018 11:26, 6 years ago
Re: Cross/native compiling GCC in/for Aros
Hi, Okay, I have installed various Aros systems (Icaros, AspireOS, both Linux and Windows-hosted) variants. I am interested of making music Aros, working with another guy using old Amiga's, I write my own software, which I am trying to "port" to Aros. For that, I need SoX audio utility. I have tried to compile on Windows-hosted system, running Aros and compiling SoX from sources, but no luck so far. It is close, especially SoX version 12.17, compiles all to object files, but doesn't link the final binary. To do this, I have installed these packages of Aros: AROS-20180924-mingw32-i386-system AROS-20180924-pc-i386-contrib No messages of missing anything, so it seems I have all needed, if not, any tips welcome :) ! Thanks !
You can view all discussion threads in this forum.
You cannot start a new discussion thread in this forum.
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

Filter by Tags

Popular Threads This Week

Icon Toolsby miker1264 177 posts
Tiny Aros DistrĂ²by Amiwell79 159 posts
AROS ABIv0 20220318-1 Supportby deadwood 70 posts
Custom Keyboard Layoutby MasterTggtt 14 posts
r-teaby r-tea 7 posts
AROS One 68k Work In Progressby AMIGASYSTEM 6 posts
Wanderer Menusby pixie 4 posts
Rufus 3.x and Rufus 4.x.by AMIGASYSTEM 3 posts
AROS Can Do IT videoby mattson62 1 post
Sign In
Not a member yet? Click here to register.
Forgot Password?
Users Online Now
Guests Online 6
Members Online 0

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