[squeak-dev] Mouse mapping preference in win32 squeak VM

Igor Stasenko siguctua at gmail.com
Tue Nov 18 16:02:52 UTC 2008


Hello list,

The windows port of VM has two preferences
1 Button mouse
and
3 Button mouse

I understand that it kind of forcing VM to think that there is a mouse
with single button, or with 3 buttons.
But in windows API there are already support for 3-buttoned mices, and
you'll never get a message with middle button click if your mouse
don't have a middle button.

Also, in recordMouseEvent()  there are modifiers for red button:

red + alt -> blue
red + ctrl -> yellow

so, in this way, VM can generate events for all 3 button types even if
you having a single button mice.

Concerning '3 buttons' option, all it does is swapping the blue and
yellow buttons. But hey, we can swap blue/yellow mouse buttons from
preferences.
Maybe, historically, these preferences appeared in different time, but
currently they simply duplicate each other, and we really need only a
single one.

And at last, since mouse event recorded along with modifier keys
(alt/ctrl etc), i think that all logic concerning mouse buttons
mapping can live at language side without any loss of functionality.
What you think?


-- 
Best regards,
Igor Stasenko AKA sig.



More information about the Squeak-dev mailing list