Middle mouse button not working in emulator
- kliepatsch
- Posts: 247
- Joined: Thu Oct 08, 2020 9:54 pm
Middle mouse button not working in emulator
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
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.
- kliepatsch
- Posts: 247
- Joined: Thu Oct 08, 2020 9:54 pm
Middle mouse button not working in emulator
So, is it rather a KERNAL issue than an emulator issue?
Middle mouse button not working in emulator
Probably if you wanted to support it you would need to make changes in both the emulator and the kernel, yeah.
- kliepatsch
- Posts: 247
- Joined: Thu Oct 08, 2020 9:54 pm
Middle mouse button not working in emulator
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
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.