<br><br><div class="gmail_quote">On Thu, Oct 20, 2011 at 9:29 AM, Bert Freudenberg <span dir="ltr"><<a href="mailto:bert@freudenbergs.de">bert@freudenbergs.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
It seems like a VM bug though. The VM is supposed to do the mapping, and the VM options are there to configure that.<br></blockquote><div><br></div><div>Cog's platform tree is a fork from (I think) Squeak 3.8 and was modified at Qwaq/Teleplace over quite a few years. I think the right approach is to merge in the standard platform hierarchy so that the Cog VM's behaviour agrees with the standard VM. But that's work :(</div>
<div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">IIUC the interpreter VM on Windows gets it right, yes?<br>
<br>
- Bert -<br>
<br>
On 20.10.2011, at 17:21, Chris Cunningham wrote:<br>
<br>
> Well, I've personally just been frustrated by it (as a Windows Cog<br>
> user). But, I haven't been using it regularly enough to try and track<br>
> anything down.<br>
><br>
> -Chris<br>
> On Wed, Oct 19, 2011 at 4:30 PM, Aran Lunzer <<a href="mailto:aranlunzer@gmail.com">aranlunzer@gmail.com</a>> wrote:<br>
>> Hi<br>
>><br>
>> I just posted a one-method proposed change to EventSensor, as a way to<br>
>> enable use of both yellow- and blue-button clicks in a Cog VM running<br>
>> on Windows.<br>
>><br>
>> Background:<br>
>><br>
>> Running a Squeak image with Cog on Windows (for example, the 4.3alpha<br>
>> image on Cog 4.0.0 of Oct 9, 2011) it seems there is no way to have<br>
>> both yellow-click (e.g., context menu) and blue-click (e.g., halo)<br>
>> available at the same time.<br>
>><br>
>> Without enabling either of the VM (F2) 1-button or 3-button mouse<br>
>> settings, the behaviour of the right button of a 2-button mouse is<br>
>> determined by the swapMouseButtons preference.<br>
>><br>
>> With swapMouseButtons enabled, the available clicks are<br>
>><br>
>> Left: red<br>
>> Ctrl-left: [morphic menu]<br>
>> Alt-left: red<br>
>> Right: blue<br>
>><br>
>> With swapMouseButtons disabled, the only change is<br>
>><br>
>> Right: yellow<br>
>><br>
>> On MacOS there is additional scope for configuration, through<br>
>> info.plist. But not on Windows.<br>
>><br>
>><br>
>> Proposed fix:<br>
>><br>
>> It seems that what's needed is a call of mapButtons:modifiers: from<br>
>> EventSensor>>processEvent:<br>
>> With this step included (for non-MacOS platforms only), we can obtain<br>
>> the following mapping:<br>
>><br>
>> [swapMouseButtons disabled]<br>
>><br>
>> Left: red<br>
>> Ctrl-left: [morphic menu]<br>
>> Alt-left: blue<br>
>> Right: yellow<br>
>><br>
>><br>
>> ...so finally we have a way to get blue *and* a way to get yellow<br>
>> (with thanks to Bert Freudenberg for helping track down where the<br>
>> mapping should be done).<br>
>><br>
>> What I don't understand is how other people have been doing this up to<br>
>> now. Surely there are some Windows users of Cog??<br>
>><br>
>><br>
>> Aran<br>
>> --<br>
>> Aran Lunzer<br>
>> Viewpoints Research<br>
>><br>
>><br>
><br>
<br>
<br>
<br>
<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>best,<div>Eliot</div><br>