[UI] Mouse vs Keyboard
Bert Freudenberg
bert at freudenbergs.de
Thu Sep 6 22:12:48 UTC 2007
Actually it is because the VM format of mouse events assumes only 3
mouse buttons (it reserves 3 bits). Adding a special keyboard event
was simpler (I confess to being guilty of this).
It doesn't really matter what the OS sends (on Unix it is a click of
mouse buttons 4 and 5, on Windows it is a special "scroll" event IIRC).
The Right Thing to do would probably adding a new type of event to
the VM, which might also include horizontal scrolling somehow (the
easier thing being adding ctrl-left/right ;)
- Bert -
On Sep 6, 2007, at 12:37 , Igor Stasenko wrote:
> Its hardcoded in VM code to ctrl-down/ctrl-up (at least for windows).
> I thought this was to get around that in different OSes a mouse wheel
> event generated differently or even not supported.
>
>
> On 06/09/07, Gary Chambers <gazzaguru2 at btinternet.com> wrote:
>> Just noticed after the keyboard focus change I've done that most
>> other OSes
>> treat the mouse wheel as a mouse event. Squeak treats it as
>> keyboard...
>>
>> _______________________________________________
>> UI mailing list
>> UI at lists.squeakfoundation.org
>> http://lists.squeakfoundation.org/mailman/listinfo/ui
>>
More information about the UI
mailing list