Hi
I just posted a one-method proposed change to EventSensor, as a way to enable use of both yellow- and blue-button clicks in a Cog VM running on Windows.
Background:
Running a Squeak image with Cog on Windows (for example, the 4.3alpha image on Cog 4.0.0 of Oct 9, 2011) it seems there is no way to have both yellow-click (e.g., context menu) and blue-click (e.g., halo) available at the same time.
Without enabling either of the VM (F2) 1-button or 3-button mouse settings, the behaviour of the right button of a 2-button mouse is determined by the swapMouseButtons preference.
With swapMouseButtons enabled, the available clicks are
Left: red Ctrl-left: [morphic menu] Alt-left: red Right: blue
With swapMouseButtons disabled, the only change is
Right: yellow
On MacOS there is additional scope for configuration, through info.plist. But not on Windows.
Proposed fix:
It seems that what's needed is a call of mapButtons:modifiers: from EventSensor>>processEvent: With this step included (for non-MacOS platforms only), we can obtain the following mapping:
[swapMouseButtons disabled]
Left: red Ctrl-left: [morphic menu] Alt-left: blue Right: yellow
...so finally we have a way to get blue *and* a way to get yellow (with thanks to Bert Freudenberg for helping track down where the mapping should be done).
What I don't understand is how other people have been doing this up to now. Surely there are some Windows users of Cog??
Aran -- Aran Lunzer Viewpoints Research
Well, I've personally just been frustrated by it (as a Windows Cog user). But, I haven't been using it regularly enough to try and track anything down.
-Chris On Wed, Oct 19, 2011 at 4:30 PM, Aran Lunzer aranlunzer@gmail.com wrote:
Hi
I just posted a one-method proposed change to EventSensor, as a way to enable use of both yellow- and blue-button clicks in a Cog VM running on Windows.
Background:
Running a Squeak image with Cog on Windows (for example, the 4.3alpha image on Cog 4.0.0 of Oct 9, 2011) it seems there is no way to have both yellow-click (e.g., context menu) and blue-click (e.g., halo) available at the same time.
Without enabling either of the VM (F2) 1-button or 3-button mouse settings, the behaviour of the right button of a 2-button mouse is determined by the swapMouseButtons preference.
With swapMouseButtons enabled, the available clicks are
Left: red Ctrl-left: [morphic menu] Alt-left: red Right: blue
With swapMouseButtons disabled, the only change is
Right: yellow
On MacOS there is additional scope for configuration, through info.plist. But not on Windows.
Proposed fix:
It seems that what's needed is a call of mapButtons:modifiers: from EventSensor>>processEvent: With this step included (for non-MacOS platforms only), we can obtain the following mapping:
[swapMouseButtons disabled]
Left: red Ctrl-left: [morphic menu] Alt-left: blue Right: yellow
...so finally we have a way to get blue *and* a way to get yellow (with thanks to Bert Freudenberg for helping track down where the mapping should be done).
What I don't understand is how other people have been doing this up to now. Surely there are some Windows users of Cog??
Aran
Aran Lunzer Viewpoints Research
It seems like a VM bug though. The VM is supposed to do the mapping, and the VM options are there to configure that.
IIUC the interpreter VM on Windows gets it right, yes?
- Bert -
On 20.10.2011, at 17:21, Chris Cunningham wrote:
Well, I've personally just been frustrated by it (as a Windows Cog user). But, I haven't been using it regularly enough to try and track anything down.
-Chris On Wed, Oct 19, 2011 at 4:30 PM, Aran Lunzer aranlunzer@gmail.com wrote:
Hi
I just posted a one-method proposed change to EventSensor, as a way to enable use of both yellow- and blue-button clicks in a Cog VM running on Windows.
Background:
Running a Squeak image with Cog on Windows (for example, the 4.3alpha image on Cog 4.0.0 of Oct 9, 2011) it seems there is no way to have both yellow-click (e.g., context menu) and blue-click (e.g., halo) available at the same time.
Without enabling either of the VM (F2) 1-button or 3-button mouse settings, the behaviour of the right button of a 2-button mouse is determined by the swapMouseButtons preference.
With swapMouseButtons enabled, the available clicks are
Left: red Ctrl-left: [morphic menu] Alt-left: red Right: blue
With swapMouseButtons disabled, the only change is
Right: yellow
On MacOS there is additional scope for configuration, through info.plist. But not on Windows.
Proposed fix:
It seems that what's needed is a call of mapButtons:modifiers: from EventSensor>>processEvent: With this step included (for non-MacOS platforms only), we can obtain the following mapping:
[swapMouseButtons disabled]
Left: red Ctrl-left: [morphic menu] Alt-left: blue Right: yellow
...so finally we have a way to get blue *and* a way to get yellow (with thanks to Bert Freudenberg for helping track down where the mapping should be done).
What I don't understand is how other people have been doing this up to now. Surely there are some Windows users of Cog??
Aran
Aran Lunzer Viewpoints Research
On Thu, Oct 20, 2011 at 9:29 AM, Bert Freudenberg bert@freudenbergs.dewrote:
It seems like a VM bug though. The VM is supposed to do the mapping, and the VM options are there to configure that.
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 :(
IIUC the interpreter VM on Windows gets it right, yes?
- Bert -
On 20.10.2011, at 17:21, Chris Cunningham wrote:
Well, I've personally just been frustrated by it (as a Windows Cog user). But, I haven't been using it regularly enough to try and track anything down.
-Chris On Wed, Oct 19, 2011 at 4:30 PM, Aran Lunzer aranlunzer@gmail.com
wrote:
Hi
I just posted a one-method proposed change to EventSensor, as a way to enable use of both yellow- and blue-button clicks in a Cog VM running on Windows.
Background:
Running a Squeak image with Cog on Windows (for example, the 4.3alpha image on Cog 4.0.0 of Oct 9, 2011) it seems there is no way to have both yellow-click (e.g., context menu) and blue-click (e.g., halo) available at the same time.
Without enabling either of the VM (F2) 1-button or 3-button mouse settings, the behaviour of the right button of a 2-button mouse is determined by the swapMouseButtons preference.
With swapMouseButtons enabled, the available clicks are
Left: red Ctrl-left: [morphic menu] Alt-left: red Right: blue
With swapMouseButtons disabled, the only change is
Right: yellow
On MacOS there is additional scope for configuration, through info.plist. But not on Windows.
Proposed fix:
It seems that what's needed is a call of mapButtons:modifiers: from EventSensor>>processEvent: With this step included (for non-MacOS platforms only), we can obtain the following mapping:
[swapMouseButtons disabled]
Left: red Ctrl-left: [morphic menu] Alt-left: blue Right: yellow
...so finally we have a way to get blue *and* a way to get yellow (with thanks to Bert Freudenberg for helping track down where the mapping should be done).
What I don't understand is how other people have been doing this up to now. Surely there are some Windows users of Cog??
Aran
Aran Lunzer Viewpoints Research
squeak-dev@lists.squeakfoundation.org