Middle mouse button not working in emulator

Get technical support from the community & developers with specific X16 programs if you can't find the solution elsewhere
(for general non-support related chat about programs please comment directly under the program in the software library)
Post Reply
User avatar
kliepatsch
Posts: 247
Joined: Thu Oct 08, 2020 9:54 pm

Middle mouse button not working in emulator

Post 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.

Ender
Posts: 220
Joined: Sat May 09, 2020 9:32 pm

Middle mouse button not working in emulator

Post 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.

User avatar
kliepatsch
Posts: 247
Joined: Thu Oct 08, 2020 9:54 pm

Middle mouse button not working in emulator

Post by kliepatsch »


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

Ender
Posts: 220
Joined: Sat May 09, 2020 9:32 pm

Middle mouse button not working in emulator

Post by Ender »


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

User avatar
kliepatsch
Posts: 247
Joined: Thu Oct 08, 2020 9:54 pm

Middle mouse button not working in emulator

Post 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

Ender
Posts: 220
Joined: Sat May 09, 2020 9:32 pm

Middle mouse button not working in emulator

Post 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.

Post Reply