amigamiaAdminPosted
1 year agoHi all, at first I was looking at the AOS4 source code but after a chat with one of the developers the suggestion came to switch to MOS code because it had many AROS similarities. However, I have not made any changes. Basically it's like I never started on modifying the MOS code.
It is best if we start from scratch and place the code on a git... server somewhere.
Thanks for reminding about lowlevel.library. It is indeed limited in a sense that it supports what Amiga had: mouse, digital joystick and CD-32 game pad. There seems to be some extensions for analog joystics done by Poseidon.
As to question about Get_ functions. You can probably just say 1 button, 2 axes, 0 hats and you will have Amiga-like joystick configuration and then you could use lowlevel.library. That's probably a good start.
Can you point me to those sources (both for OS4 and MOS) where SDL2 is making calls into those modules (amigainput and sensor)?
I assume you mean that SDL2 sources for OS4 use internally amigainput.library and SDL2 sources for MOS use sensor.hid internally? Is that correct understanding?
serk118ukSoftware DevPosted
1 year agoI agree with deadwood,
I had a sneaky peek for my project need, one area might be bit problematic, mos uses sensor hid and os4 uses amigainput.library for joystick and joypad, we don't have any of them, I recompiled xinput class and library but that limits to only xinput controllers , I am not sure what's the best way to go by this.
I see few options..
1.use old sdl 1.2 joystick implemention or
2.use a usb gamepad hid.class (I think that's what morphos done , than again just guessing)
How would we implement? Option 2 maybe , we can configure the buttons and gamepad.hid sees every usb joypad I connect so far.
Do we compile a library arround hid.class and make the calls via hid.class or compile a cut down version of hid.class only for usb joypads/joysticks.
I mean separate joypad implementation from hid.class and call it sensors.hid like morphos or something else..
Any ideas ladies and gent..
Edited by serk118uk on 09-01-2024 10:24,
1 year agoIf you have specific questions and your modified source code is available somewhere to view I can try helping with compilation errors.
amigamiaAdminPosted
1 year agoI was but stopped for a while. I just recently picked it up again and tried to compile with no changes applied but still no luck. I am going to post some progress soon and perhaps with the help of the community we achieve this.
serk118ukSoftware DevPosted
1 year agoHi ppl , I can not remember who but someone was working on porting SDL 2.0, what's the current state?