Jump to content
  • 0
kliepatsch

Middle mouse button not working in emulator

Question

I have tried this under Windows and Ubuntu, with two different mice, and confirmed that the middle mouse button actually works for both mice. Yet, there is no response in the emulator (i.e. register A assumes only values 0,1,2 or 3 after calling the MOUSE_GET KERNAL routine).

Anyone else experiencing this? I guess it should be a relatively easy fix in the emulator.

Share this post


Link to post
Share on other sites

5 answers to this question

Recommended Posts

  • 0

Well, I don't know this for sure, but I'd assume it's because it's meant to mimic mouse support from the old days, and mice back then didn't have a middle button.  On a more technical level, I think it's mainly because the mouse support is code pulled directly from the GEOS code, and since GEOS was written back when mice didn't have scroll wheels, it didn't support it.

  • Thanks 1

Share this post


Link to post
Share on other sites
  • 0

Probably if you wanted to support it you would need to make changes in both the emulator and the kernel, yeah.

Share this post


Link to post
Share on other sites
  • 0

Thanks for your hints, Ender.

I don't know if it was clear ... Anyway for future reference I want to have mentioned that according to the manual, the middle mouse button is supported. That's why I am reporting this. (And only partly because I intended to use it - I can live without it 😉

https://github.com/commanderx16/x16-docs/blob/master/Commander X16 Programmer's Reference Guide.md#function-name-mouse_get

Share this post


Link to post
Share on other sites
  • 0
43 minutes ago, kliepatsch said:

Thanks for your hints, Ender.

I don't know if it was clear ... Anyway for future reference I want to have mentioned that according to the manual, the middle mouse button is supported. That's why I am reporting this. (And only partly because I intended to use it - I can live without it 😉

https://github.com/commanderx16/x16-docs/blob/master/Commander X16 Programmer's Reference Guide.md#function-name-mouse_get

Ah yes you're right. I should have looked at the documentation before I said anything.  And now that I'm looking at the kernal and emulator source, it seems it is just an emulator issue.  I see support for it in the kernal, but not the emulator.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Please review our Terms of Use