Page 1 of 1

Middle mouse button not working in emulator

Posted: Sat Nov 28, 2020 3:54 pm
by kliepatsch

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.


Middle mouse button not working in emulator

Posted: Sat Nov 28, 2020 4:36 pm
by Ender

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.


Middle mouse button not working in emulator

Posted: Sat Nov 28, 2020 4:43 pm
by kliepatsch

So, is it rather a KERNAL issue than an emulator issue?


Middle mouse button not working in emulator

Posted: Sat Nov 28, 2020 6:28 pm
by Ender

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


Middle mouse button not working in emulator

Posted: Sun Nov 29, 2020 8:06 pm
by kliepatsch

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


Middle mouse button not working in emulator

Posted: Sun Nov 29, 2020 8:54 pm
by Ender


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.