Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MEGA65+C65: mouse emulation/usage problems #321

Open
lgblgblgb opened this issue Feb 4, 2022 · 3 comments
Open

MEGA65+C65: mouse emulation/usage problems #321

lgblgblgb opened this issue Feb 4, 2022 · 3 comments

Comments

@lgblgblgb
Copy link
Owner

lgblgblgb commented Feb 4, 2022

Mouse emulation problems in MEGA65 and C65 emulators:

  1. [NOT HERE, DONE] In V400 mode (GEOS, Solitaire), the mouse pointer cannot be moved beyond about the second half of the screen vertically. This is actually not a mouse emulation bug, but a sprite issue, see MEGA65: problem with sprite X/Y-position and size in H640 and/or V400 modes #320 Should be checked for C65 emulation as well
  2. Mouse movement is just too fast compared to real MEGA65 (no info on a real C65 unfortunately). With a simple BASIC10 command (MOUSE ON) it seems to be OK, however the problem that on real MEGA65 it must be "too slow". At least all recent programs for MEGA65 using mouse (with own routines, by M3wP - thanks! - not by using the ROM's mouse routine!) seems to work fine on MEGA65 but waaay too fast in Xemu (virtually unusable, so fast).
  3. [DONE] Mouse clicking does not work by default. Actually this is a problem that mouse emulation uses the actual selected joystick port for emulation, which is port-2 by default, but for real, mouse should (?) use port-1. Workaround: switch to port-1 on mouse grab mode (and restore the setting on leaving mouse grab mode).
  4. Expose mouse POT regs via $D62n (n=0,1,2,3) registers as well?
@lgblgblgb lgblgblgb self-assigned this Feb 4, 2022
@lgblgblgb lgblgblgb added this to In Progress in MEGA65 emulator project Feb 4, 2022
@lgblgblgb lgblgblgb added the WIP label Feb 4, 2022
lgblgblgb referenced this issue Mar 4, 2022
* Mouse position query modifications suggested by M3wP on Discord
* Mouse grab mode now switches to joy port-1 automatically
* Missing HELP key in $D610 keyboard scanner
* make showmatrix2ascii target to extract mat2asc tables from VHDL
@lgblgblgb
Copy link
Owner Author

M3wP suggested mouse change is in commit 5511091

@lgblgblgb
Copy link
Owner Author

It seems mouse problems started to show up for the real MEGA65 as well, at least for the ROM routines. I would rather wait for that to be sorted out to see, how then we can compare various mouse user software including the most prominent possibility (and it seems people are really into this ...): BASIC itself.

@lgblgblgb
Copy link
Owner Author

As discussed in MEGA65/mega65-rom-public#8 it would be also a great opportunity to check the "behaviour match" between MEGA65 and Xemu in terms of hardware level mouse "behaviour". I think, there are differences still, in Xemu is still not the same mouse speed, etc.

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

No branches or pull requests

1 participant