In article <sft5ep$1fcb$
1...@gioia.aioe.org>, Nicola <
nic...@nohost.org> wrote:
>On 2021-08-22, Kent Dickey <
ke...@provalid.com> wrote:
>> In article <sfrb1e$1bkr$
1...@gioia.aioe.org>, Nicola <
nic...@nohost.org> wrote:
>>>Hi,
>>>I have an original Apple Joystick and a modern controller.
>
>>>But none of them seems to work with any IIGS emulator. I have tried
>>>Sweet16 3.0.3, GSPlus 0.14, and the recently updated KEGS 1.11.
>
>> I wrote KEGS.
>
>Thanks for the time you and the other developers invest to keep ol'good
>times alive!
>
>> On a Mac, I don't know how to access the joystick, and so KEGS
>> doesn't support joysticks on a Mac.]
>
>Good to know. I assume that the same holds for the other emulators (but
>see below).
OK, based on your information, I think I've made Mac joysticks work in KEGS.
This was easier than I expected since Apple DID have a sample project (I just
didn't find it right away). I didn't know you could just plug in PS4
controllers to your Mac with a USB cable, so I did that, and made it work
under KEGS 1.12. You can download KEGS.1.12 at:
http://kegs.sourceforge.net/
Select "Native Joystick 1" from the Joystick Configuration sub-menu, from the
configuration settings you can change after pressing F4.
There are issues. The PS4 joysticks are "circular", so moving to a "corner"
doesn't move to a corner like a real Apple II joystick would. For instance,
moving to the upper right would be x=255,y=0 on an Apple II joystick, but it's
something like x=200,y=30 on my PS4 controller. It seemed to work "OK" if I
changed the "Joystick Scale X/Y" to 20%, which just magnifies the values being
read. How would you like to handle this? I also made the left stick the
"joystick", the right stick (if it exists) is ignored. As for all the
buttons, I kinda assigned them randomly to button 0 and button 1. I don't
know what makes sense. Try it, and let me know what button you're pressing,
what you get, and what you'd like to get. Oh, and I ignore the D-pad.
Controllers other than PS4 controllers should work, that's just what I had.
The Apple IIgs gameport supports two joysticks, and a total of 4 buttons.
I guess KEGS could support multiple joysticks--is that something I should
implement? Or should the right stick be the second joystick, and map more
buttons for the second joystick? Again, let me know what you'd like, and I'll
try to implement it.
If a joystick isn't detected, then Joystick Emulation will jump back to
Keypad Joystick when you go back to the F4 page.
(This is not a release I'm going to announce generally since it just adds
the joystick stuff, and it's honestly probably not useful yet, I need
feedback).
Kent