rkrajnc / minimig-mist

Minimig for the MiST board
GNU General Public License v3.0
63 stars 40 forks source link

USB joystick disables DB9 mouse #82

Closed AmigaIstMiST closed 7 years ago

AmigaIstMiST commented 7 years ago

Result: the mouse works, everything is fine

Result: the USB joystick disables the DB9 Amiga mouse! If you unplug the USB joystick, the DB9 Amiga mouse works again.

AmigaIstMiST commented 7 years ago

Tested with firmware ATH170207 and MinimigAGA cor 1.2.2 BETA.

rkrajnc commented 7 years ago

Hi,

yes there is some code in the firmware that reorders joysticks / mice when an USB device is plugged in. It's annoying, I agree. I'll take a look at it and try to come up with a solution.

rkrajnc commented 7 years ago

Hi,

try to update your MiST firmware with the attached file (unzip it to the root of your SD card and run firmware upgrade in the OSD menu), and add an entry to your mist.ini file, under the [mist] section: joystick0_prefer_db9=1

I only tried it with a joystick in JOY1 and AAA, but it should work with a mouse also. Please report if it works for you so I can close the issue and push the code.

firmware.zip

AmigaIstMiST commented 7 years ago

Ok, I tested all 4 possible combinations of USB/DB9 mice and joysticks:

Everything works as expected!

However, it is a little odd, that an extra INI entry is needed for this. I think, this this the expected behavior!

rkrajnc commented 7 years ago

Hi,

thanks for testing this. Actually, the extra ini setting is really needed, as the firmware can't automatically detect DB9 - connected devices, so if a USB joystick is present, it has to assume that no DB9 joysticks are present and make the USB device the primary joystick (so at least one device works).

That is how the firmware works without the new ini entry - as soon as one USB device is present, it makes it joystick number two, and makes DB9 JOY1 the third device. The new ini entry disables this joystick reordering.

Theoretically, the firmware could detect the DB9 - connected mouse or joystick when it would detect direction movement or a button press and then reorder the devices, but that would make it even more confusing, so for now, this solution should do.

rkrajnc commented 7 years ago

Fixed in MiST firmware with commit 23ad06e0.

AmigaIstMiST commented 6 years ago

What about releasing the firmware as a binary ? :-)

rkrajnc commented 6 years ago

What do you mean? The binary is 5 posts up, the firmware.zip link.

AmigaIstMiST commented 6 years ago

I mean: making it public in the official MiST repo. You did a code check in, but you did not check in the binary.

Am 03.11.2017 11:37 AM schrieb "Rok Krajnc" notifications@github.com:

What do you mean? The binary is 5 posts up, the firmware.zip https://github.com/rkrajnc/minimig-mist/files/1327648/firmware.zip link.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rkrajnc/minimig-mist/issues/82#issuecomment-341668921, or mute the thread https://github.com/notifications/unsubscribe-auth/ARHNKapRhgwlDP3-mtE7kWMu9BPObxDWks5syuzjgaJpZM4PhgBv .