x64dtv remembers not Userport Joystick adapter
Versatile Commodore Emulator
Brought to you by:
blackystardust,
gpz
I was configuring x64dtv and set Userport joystick adapter to Hummer, then selected joystick and saved settings. When I tried to verify after new x64dtv start, adapter remembers not - maybe it is only visible status and really works, but I'm writing about it as bug 'cause long time has same problem x128 with network settings...
Miro
Confirmed, the dropdown list is empty when restarting. Appears to work on SDL2 (linux) and Gtk2. This will have to wait until the Gtk3 UI advances to the point where the dialog/widget for those settings is being implemented.
What exactly is this bug about? I can't set the userport joystick adapter in either Gtk2 or Gtk3 to Hummer. And I get a warning:
Warning - Trying to read value from unknown resource 'UserportJoyType'
However setting the userport joystick to 'numpad', 'keyset A/B' or 'Analog 0-5' works fine.
perhaps it is about i/o extensions->hummer adc?
I suspect it is, but even when I enable 'Hummer ADC', I don't see any 'Hummer' in any list of adapters/joysticks. Not in Gtk2 or Gtk3. So does the Hummer provide some kind of joystick interface? In that case the list of joystick devices/adapters needs to be updated depending on the 'HummerADC' resource.
iirc the hummer had a steering wheel, and it was connected to the userport. but i have no idea how it works exactly or how it is emulated
I tested longer time not nightly builds, so it's valid at least month ago, maybe it was solved yet.
If not I wrote what I tried,
Miro
Last edit: gpz 2020-10-11
Racing games need a way for us to tell a car when to go and when to stop. The Hummer DTV must have digital input controls for that.
The WinVICE UI merges the "enable userport joysticks" toggle into the "adapter type" combobox (the x64dtv choices are "no adapter" and "Hummer adapter").
User-port code was factored out into its own directory. The init. code knows that the x64dtv supports only one type of joystick adapter; therefore, the
UserportJoyType
resource isn't defined. (But, that code doesn't know that the CBM5x0 and VSID don't support any adapters.)Some UI code knows; but, still doesn't act properly. For example, the GTK3 x64dtv doesn't show the "adapter type" combobox -- but, it creates that box anyway (which looks for the resource)!
The simplest fix -- for all UIs -- is to define that resource regardless of the emulated machine; and, make the HUMMER be its default.
Seems to me the easiest way to 'fix' this is to provide a separate UI for the Hummer controlport/userport settings, since the Hummer doesn't seem to provide useable control ports on its board. There seems to be a way to hack the board to provide a userport joystick, but this requires hacking the hardware, patching the Kernal AND patching the software to use that userport joystick.
So unless someone can provide me with some actual patched software and a hacked Kernal, I suggest we treat the Hummer as a completely different DTV, not just a 'model' change.
uh, the hummer is definately a dtv "model", its really just he exact same SoC with some steering wheel connected to its "userport".
It should at least save and remeber the resources correctly now.
The adapter combobox is still whack though - gotta find out what happened to the "hummer" entry
i am closing this, please reopen when the original issue persists.
the "hummer joystick" vs "dtv joystick" vs "userport joystick adapter" mess has been noted in the wiki, we'll have to look at this later. it should all work now, albeit a bit weird to set up.