KeyPortari controller emulation (draft) - #1119
Conversation
|
At first glance I spotted a new checkbox in GameInfoDialog. Why is it required? If this is a new controller, it should be added to the dropdown only. BTW: Can this be autodetected? |
|
Thanks for looking at this.
So this is a way to say "use KeyPortari in conjunction with two passthrough controllers that will be attached to the KeyPortari". KeyPortari allows you to connect a regular keyboard using both ports but also pass through to other controllers (joysticks, paddles etc). If no key is pressed the value will be read from the passthrough. There are also some behaviors depending on KeyPortari settings (those settings still need to be modeled) So my thought was either
I only have a couple of sample programs in front of me I think it could be possible to recognize the code seen in them as distinct usage from other kinds of controllers. Doc link is here: https://forums.atariage.com/topic/382423-keyportari-docs-links/ |
|
Hm, isn't that similar to the QuadTari? So when you select a KeyPortari, the 2nd controllers can be selected on a separate dialog? Except that there is only one per port, not two. |
Yes, similar. I'm going to look at using a separate dialog. This would also help in being able to configure the different options for keycode mapping supported by the actual hardware (that I didn't support fully in the first pass). If I switch this MR to configuring the KeyPortari from the dropdown, it's important for users to know it should be configured to use both left and right ports in order to process keys correctly (uses pins on both ports to encode keypresses) - wondering if there's a way to document this or message the user? |
|
@thrust26 I've made some updates if you have thoughts on whether this is heading in a proper direction. Configuration:
How it works now - want to make sure I'm not misinterpreting how controllers were intended to be used:
I've also attempted to make sure the docs and build is up to date for all systems, although right now I am only set up to test macos/XCode. Frustratingly in the process of me getting SDL3 working I wound up touching framework config and XCode wound up changing GUIDs in the xcodeproj. |
|
Sorry, but I am currently very busy, so I do not have the time right now. @sa666666, @DirtyHairy maybe you could have a look? |
|
Looks sensible to me. There are a few parts of the code that are not quite clear to me, but as a understand this is a work in progress, I'll hold back until it is finished 😏 As for the repeated iteration: I don't see a good way around it without more invasive changes. |
Sure thing, thanks for the quick look! |
|
I agree with @DirtyHairy. Once you are closer to completion with this, we can consider it. For now, I'll try to find time to review what you've done so far. |
… KeyPortari mapping
|
@sa666666 Did you have a look already? |
I'm working on a project that uses KeyPortari and was looking at adding support to stella for ease of testing (I don't have the hardware). This is a first pass, hope I'm interpreting the code right... (and apologies if I am missing any code style or contribution guidelines)