heretic here - is possible to swap hit/do mouse buttons?

Helpful tips and guides, also new users can ask for help here.
Post Reply
User avatar
7alken
ROM Dongle
Posts: 48
Joined: Tue Apr 18, 2023 2:23 am

heretic here - is possible to swap hit/do mouse buttons?

Post by 7alken »

Hi all, I feel like this may be disturbing someone, but is somehow possible to globally swap mouse buttons? At least by some hack in mouse driver, for SMSQ/e, all variants, or specifically for Qemulator and QPC2? I am still newbie in this, returning to QL after few months, originally played only with QPC2 demo, but now I am using registered Qemulator with SMSQ/e, managed to understand the "config block" update of code-file(!) by menuconfig (this was/is probably MOST weird thing for anybody outside QL world, as you all are talking about it without any warning, like its known to everybody... yes, for all of you its normal, the same as headers for executables )) ... but back to the mouse buttons, as I am playing with PE and QPAC2 (another thing confusing was monitor resolution, related to menuconfig of SMSQ and QPAC2, finally found DISP_COLOUR 3,1024,768 - ya, its noted on Qemulator page also ... but ALL these today uncomon things may be rather highlighted in "red" )) ... it seems this thing is NOT configurable.

So, if its not heretical in this community, is possible to "patch" SMSQ/e mouse driver somewhere to swap the HIT/DO buttons? I want to try this possibility; some apps behave sometimes predictably for todays user, reacting on left buttons "also", but some not, preffering right DO, but I found myself clicking almost randomly on both buttons, while swaping them may help my brain to stay cooler ))

thanks,
Petr

PS:
btw, the DISP_COLOUR command is missing in all keywords manual;
https://superbasic-manual.readthedocs.i ... index.html


User avatar
NormanDunbar
Forum Moderator
Posts: 2459
Joined: Tue Dec 14, 2010 9:04 am
Location: Buckie, Scotland
Contact:

Re: heretic here - is possible to swap hit/do mouse buttons?

Post by NormanDunbar »

7alken wrote:PS: btw, the DISP_COLOUR command is missing in all keywords manual;
Thanks. Hopefully I'll get it added soon.

Cheers,
Norm.


Why do they put lightning conductors on churches?
Author of Arduino Software Internals
Author of Arduino Interrupts

No longer on Twitter, find me on https://mastodon.scot/@NormanDunbar.
User avatar
tofro
Font of All Knowledge
Posts: 3062
Joined: Sun Feb 13, 2011 10:53 pm
Location: SW Germany

Re: heretic here - is possible to swap hit/do mouse buttons?

Post by tofro »

7alken wrote: Sat Apr 26, 2025 2:02 pm So, if its not heretical in this community, is possible to "patch" SMSQ/e mouse driver somewhere to swap the HIT/DO buttons? I want to try this possibility; some apps behave sometimes predictably for todays user, reacting on left buttons "also", but some not, preffering right DO, but I found myself clicking almost randomly on both buttons, while swaping them may help my brain to stay cooler ))
If it were possible to swap mouse buttons (I don't think it is, at least not without a hardware mod of your mouse), I think it would confuse you even more.

The original PE has defined the left button as (de)select and the right one as execute. Windows (and other modern WIMPs) use left as both select and execute, depending on what you click on, right as "options". If you turn that around, right will be select (which will just as well not be compatible with your muscle memory) and left execute only. I don't think you'll gain anything in the end


ʎɐqǝ ɯoɹɟ ǝq oʇ ƃuᴉoƃ ʇou sᴉ pɹɐoqʎǝʞ ʇxǝu ʎɯ 'ɹɐǝp ɥO
User avatar
Cristian
QL Wafer Drive
Posts: 1024
Joined: Mon Feb 16, 2015 1:40 pm
Location: Veneto

Re: heretic here - is possible to swap hit/do mouse buttons?

Post by Cristian »

With the SerMouse driver it seems possible. The SerMouse manual says:
"All mouse buttons are configurable. Therefore three separate config blocks are present. Changing the mouse buttons should be done with great care. It is possible to assign any control code and SPACE to a button ($00 - $20 and $E8 - $FF). Some codes can not be entered through the keyboard (e.g. ENTER and ESC), but a translate option exists:

Button: NULL HIT DO Cancel SPACE ENTER ESC ALT
Number: 0 1 2 3 6 7 8 9

When such a number was entered, the corresponding key is shown immediately in MenuConfig, while the standard config program shows the keys on a second run only."


User avatar
7alken
ROM Dongle
Posts: 48
Joined: Tue Apr 18, 2023 2:23 am

Re: heretic here - is possible to swap hit/do mouse buttons?

Post by 7alken »

thanks guys, I tried ask first, if it was common quesiton; will try to find it in source and then patch it; really want to try it, imagined it may be more natural to me, but understand how it was designed;
Petr


Post Reply