Skip to content

Conversation

@arekkusu42
Copy link
Contributor

This PR fixes #14463, which is a regression introduced by 92aa47f.

The "unconnected joysticks now read properly" portion of that commit fixed joystick 1 as advertised, however it incorrectly propagated similar logic to the IIc-specific mouse handling for C066/67. The result is that the mouse stops functioning if no joystick is plugged in.

For folks affected by this in 0.282, a workaround is to launch with -gameio joy, which will restore mouse functionality.

Remove the incorrectly propagated is_device_connected() checks,
which should not apply to the IIc mouse.

Fixes mamedev#14463.
@colinleroy
Copy link
Contributor

Confirming both the regression and fix :)

@ajrhacker ajrhacker merged commit 8c42dff into mamedev:master Nov 3, 2025
6 checks passed
@arekkusu42 arekkusu42 deleted the apple2-iicmouse branch November 3, 2025 21:14
@cuavas
Copy link
Member

cuavas commented Nov 25, 2025

For folks affected by this in 0.282, a workaround is to launch with -gameio joy, which will restore mouse functionality.

Why is it possible to have a mouse and joystick connected at the same time at all? Don’t they use the same physical connector on the IIc?

@colinleroy
Copy link
Contributor

For folks affected by this in 0.282, a workaround is to launch with -gameio joy, which will restore mouse functionality.

Why is it possible to have a mouse and joystick connected at the same time at all? Don’t they use the same physical connector on the IIc?

It's not physically possible, indeed: they do share the same connector. But MAME doesn't deactivate the mouse handling when a joystick is connected so far.

@arekkusu42
Copy link
Contributor Author

They do use the same connector, which is why I had added this code in the first place-- in order to use the mouse, it should be plugged in, no? However, MAME isn't emulating the mouse via a gameio device, instead apple2e_state::update_iic_mouse() is hooked up via analog optional_ioports.

So, there is probably a (preexisting) bug here where if -gameio joy is used, the mouse should not work. I don't have a //c here to test the C066/67 interactions; I only restored the old behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

apple2c - mouse only moves right

4 participants