Yes. I can see it in that version. Ok.This was weird. Between 10319 and 10234 seems to have changed and then returned..... On Mon, Jun 8, 2009 at 5:54 PM, Stéphane Ducasse <stephane.ducasse@inria.fr>wrote:
in 10331 core
swapMouseButtons ^ self valueOfFlag: #swapMouseButtons ifAbsent: [ OSPlatform current platformFamily ~= #Windows ]
On Jun 8, 2009, at 8:10 PM, Mariano Martinez Peck wrote:
I don't get it. I see Pharo 9.06.1 which is based on 10234 and this is the implementation:
swapMouseButtons ^ self valueOfFlag: #swapMouseButtons ifAbsent: [false]
But, you said you change to
swapMouseButtons ^ self valueOfFlag: #swapMouseButtons ifAbsent: [ OSPlatform current platformFamily ~= #Windows ]
in 10319
So, maybe it has been overriden?
Cheers,
Mariano
On Sun, Jun 7, 2009 at 5:16 PM, Adrian Lienhard <adi@netstyle.ch> wrote: In issue #838 I changed the implementation to be platform specific as follows:
swapMouseButtons ^ self valueOfFlag: #swapMouseButtons ifAbsent: [ OSPlatform current platformFamily ~= #Windows ]
which means that for Unix swapping is enabled (returns true).
If I understand you correctly, however, for Unix it should be disabled. Is this correct?
So the correct implementation would be to test for
OSPlatform current platformFamily = #Mac (or similar)
Adrian
On Jun 7, 2009, at 19:08 , Mariano Martinez Peck wrote:
Hi folks: I had an Pharo 10318 and then updat to 10328 in Linux and swapMouseButtons seems to be wrong. For the "right button" I have to press the mouse wheel button. I tried this things:
Preferences setPreference: #swapMouseButtons toValue: true. Preferences setPreference: #swapMouseButtons toValue: false. Preferences enable: #swapMouseButtons. Preferences disable: #swapMouseButtons. InputSensor swapMouseButtons: false. InputSensor swapMouseButtons: true.
No one do nothing.
I saw http://code.google.com/p/pharo/issues/detail?id=838 and seems to be changed in 10319
However, this is not working well in Linux. What I had to do to make it work is this:
Rewrite Preferences>>swapMouseButtons to this:
swapMouseButtons ^ self valueOfFlag: #swapMouseButtons ifAbsent: [self break. OSPlatform current platformFamily = #Windows ifTrue: [false]. OSPlatform current platformFamily = #Unix ifTrue: [false] ]
And then do:
InputEventSensor swapMouseButtons: false
In addition 10324 dev seems to work ok for me out of the box. Can be a problem of updating from an older version ?
What can be the problem?
Thanks
Mariano _______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project