<br><br><div class="gmail_quote">On Thu, Oct 20, 2011 at 9:29 AM, Bert Freudenberg <span dir="ltr">&lt;<a href="mailto:bert@freudenbergs.de">bert@freudenbergs.de</a>&gt;</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&#39;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&#39;s behaviour agrees with the standard VM.  But that&#39;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>
&gt; Well, I&#39;ve personally just been frustrated by it (as a Windows Cog<br>
&gt; user).  But, I haven&#39;t been using it regularly enough to try and track<br>
&gt; anything down.<br>
&gt;<br>
&gt; -Chris<br>
&gt; On Wed, Oct 19, 2011 at 4:30 PM, Aran Lunzer &lt;<a href="mailto:aranlunzer@gmail.com">aranlunzer@gmail.com</a>&gt; wrote:<br>
&gt;&gt; Hi<br>
&gt;&gt;<br>
&gt;&gt; I just posted a one-method proposed change to EventSensor, as a way to<br>
&gt;&gt; enable use of both yellow- and blue-button clicks in a Cog VM running<br>
&gt;&gt; on Windows.<br>
&gt;&gt;<br>
&gt;&gt; Background:<br>
&gt;&gt;<br>
&gt;&gt; Running a Squeak image with Cog on Windows (for example, the 4.3alpha<br>
&gt;&gt; image on Cog 4.0.0 of Oct 9, 2011) it seems there is no way to have<br>
&gt;&gt; both yellow-click (e.g., context menu) and blue-click (e.g., halo)<br>
&gt;&gt; available at the same time.<br>
&gt;&gt;<br>
&gt;&gt; Without enabling either of the VM (F2) 1-button or 3-button mouse<br>
&gt;&gt; settings, the behaviour of the right button of a 2-button mouse is<br>
&gt;&gt; determined by the swapMouseButtons preference.<br>
&gt;&gt;<br>
&gt;&gt; With swapMouseButtons enabled, the available clicks are<br>
&gt;&gt;<br>
&gt;&gt;   Left:  red<br>
&gt;&gt;   Ctrl-left:  [morphic menu]<br>
&gt;&gt;   Alt-left: red<br>
&gt;&gt;   Right: blue<br>
&gt;&gt;<br>
&gt;&gt; With swapMouseButtons disabled, the only change is<br>
&gt;&gt;<br>
&gt;&gt;   Right: yellow<br>
&gt;&gt;<br>
&gt;&gt; On MacOS there is additional scope for configuration, through<br>
&gt;&gt; info.plist.  But not on Windows.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Proposed fix:<br>
&gt;&gt;<br>
&gt;&gt; It seems that what&#39;s needed is a call of mapButtons:modifiers: from<br>
&gt;&gt; EventSensor&gt;&gt;processEvent:<br>
&gt;&gt; With this step included (for non-MacOS platforms only), we can obtain<br>
&gt;&gt; the following mapping:<br>
&gt;&gt;<br>
&gt;&gt; [swapMouseButtons disabled]<br>
&gt;&gt;<br>
&gt;&gt;   Left: red<br>
&gt;&gt;   Ctrl-left: [morphic menu]<br>
&gt;&gt;   Alt-left: blue<br>
&gt;&gt;   Right: yellow<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; ...so finally we have a way to get blue *and* a way to get yellow<br>
&gt;&gt; (with thanks to Bert Freudenberg for helping track down where the<br>
&gt;&gt; mapping should be done).<br>
&gt;&gt;<br>
&gt;&gt; What I don&#39;t understand is how other people have been doing this up to<br>
&gt;&gt; now.  Surely there are some Windows users of Cog??<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Aran<br>
&gt;&gt; --<br>
&gt;&gt; Aran Lunzer<br>
&gt;&gt; Viewpoints Research<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;<br>
<br>
<br>
<br>
<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>best,<div>Eliot</div><br>