[squeak-dev] How to yellow click with two buttons without changing mouse settings?

Marcel Taeumel marcel.taeumel at hpi.de
Tue Apr 24 06:58:34 UTC 2018


Hi Eliot,

sounds interesting. Wouldn't that need an additional check each time an event is generated in the VM? Or could that be just another fixed code path to choose once?

Best,
Marcel
Am 23.04.2018 21:18:36 schrieb Eliot Miranda <eliot.miranda at gmail.com>:
Hi Marcel,

On Sun, Apr 22, 2018 at 11:24 PM, Marcel Taeumel <marcel.taeumel at hpi.de [mailto:marcel.taeumel at hpi.de]> wrote:

Hi Jakob,

do: "HandMorph showEvents: true" then do CTRL+RED/LEFT. You will see that you get, in fact, a yellow click. I think that there is code that checks for "control pressed" first to show the different menu. So, we do emulate that yellow-click in the VM, but we keep the "control pressed"-flag. So, the event state is different, even though you get "event yellowButtonPressed = true" both times.

To sum up some prior thoughts on this topic:
1) The VM should not provide this single-button-mouse behavior but the image should.
2) The event filters to simulate those yellow/blue clicks are already possible in the image. We do it with mouse-wheel vs. CTRL+up/down already.
3) A good transformation for CTRL+RED in such a single-button-mouse mode would be YELLOW and not CTRL+YELLOW.

Anyway, this is not an easy fix or decision to make. :-)

What would be relatively straight-forward is to add an image property flag alongside the ones in the image flag word such as "floats in platform order", "processPreemptionYields", etc in vm parameter 48.  This flag would tell the VM not to do any event modifications (or at least no mouse button swapping).  And then we could at least experiment with allowing the image to perform event modification, making this a preference, etc, before some fine day in the future, transitioning away from VM support for event modification in a major release.  Thoughts?


Best,
Marcel
Am 21.04.2018 14:35:43 schrieb Jakob Reschke <forums.jakob at resfarm.de [mailto:forums.jakob at resfarm.de]>:
Hello,

I downloaded a VM (64 bit Cog Spur Windows) and a fresh trunk image
separately and have not changed any mouse button settings yet (swap
mouse buttons preference is on and neither 1 button mouse nor 3 button
mouse are selected in the VM preferences menu). My notebook does not
have a middle "mouse" button and the right button currently does a
blue click (opens the halo).

In this default setting, is there any way to do a yellow click?

I get the morph menu with ctrl+left click and in list morphs and on
the world I can invoke the menu with the Esc key, but I did not find a
modifier+button combination that would work universally to emulate a
yellow click. Have I missed it?

After disabling swap mouse buttons, right click becomes a yellow
click. But when the preference is on, both right click and alt+left
click produce a blue click. So with a two button mouse it seems that
nothing is actually swapped, but one button is unavailable
altogether...

A simple solution would be to turn the preference off by default.

Kind regards,
Jakob








--

_,,,^..^,,,_

best, Eliot
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20180424/d1809efc/attachment.html>


More information about the Squeak-dev mailing list