Using mouse with 80 x 60 or other text modes

All aspects of programming on the Commander X16.
Post Reply
Martin Schmalenbach
Posts: 140
Joined: Tue Jul 21, 2020 10:08 pm

Using mouse with 80 x 60 or other text modes

Post by Martin Schmalenbach »

Hi

When I do MOUSE 1 in the 80x60 text screen the mouse is displayed top left, but it doesn't move...

Does the mouse only work in SCREEN $80?

I'd really like to use it in 80x60 text mode!

Cheers

Martin
DragWx
Posts: 362
Joined: Tue Mar 07, 2023 9:07 pm

Re: Using mouse with 80 x 60 or other text modes

Post by DragWx »

It's working fine for me in the emulator, are you talking about a physical X16 by any chance?

Though I can see there's some weirdness with the mouse boundaries and movement scaling on the weird screen modes (like SCREEN 2 and SCREEN 5) and the bordered screen modes (like SCREEN 8), and that's when the mouse is captured; the position mapping for the mouse when not captured is even weirder. :P (EDIT: The most recent snapshot of the emulator and ROM contain some fixes which improves this)
TomXP411
Posts: 1804
Joined: Tue May 19, 2020 8:49 pm

Re: Using mouse with 80 x 60 or other text modes

Post by TomXP411 »

FYI, there have been some changes to the mouse handling code in the latest builds of the ROM. If you haven't downloaded a test build from the Github repo recently, it might be a good idea to do so.

Since the ROM is included with the emulator, the simplest way to get the latest build is to download the emulator - but instead of the Releases link, check out the Actions link up in the toolbar. (Note that Actions only shows up if you are signed in to GitHub.)
Martin Schmalenbach
Posts: 140
Joined: Tue Jul 21, 2020 10:08 pm

Re: Using mouse with 80 x 60 or other text modes

Post by Martin Schmalenbach »

Thanks all.

Yes, I meant the actual hardware - I have board s/n DEV0071.

I've sorted most of it out - really REALLY silly mistake on my part - I was moving the wrong mouse!!!

But there are still a few weird things going on which are consistent and in a way as to suggest it might not be my code. More testing by me is needed.

Cheers

Martin
mortarm
Posts: 320
Joined: Tue May 16, 2023 6:21 pm

Re: Using mouse with 80 x 60 or other text modes

Post by mortarm »

TomXP411 wrote: Sun Jul 23, 2023 11:10 pm FYI, there have been some changes to the mouse handling code in the latest builds of the ROM. If you haven't downloaded a test build from the Github repo recently, it might be a good idea to do so.
Have these changes made it to the Webem? I, too, am noticing some aberrant behavior with various SCREENs. For one, a noticeable lag between when the X16 pointer hits the right or bottom edges and when the host pointer reappears. Secondly, on some SCREENs you can move the X16 pointer right off the bottom edge, and it won't come back; it's fallen and it can't get out!

One thing is needed is a Mouse Speed setting. On the higher-res screens it's not a problem, but the lower-res you go, the more sensitive the pointer becomes.
Post Reply