[squeak-dev] Mouse button tester question
H. Hirzel
hannes.hirzel at gmail.com
Tue Apr 4 15:56:37 UTC 2017
Thank you John.
This is useful.
SensorReporter
Code added here http://wiki.squeak.org/squeak/2330
--Hannes
On 4/4/17, John-Reed Maffeo <jrmaffeo at gmail.com> wrote:
> Hannes, you may find the attached useful. File it in and do "SensorReporter
> setupAndDisplay". While using it, you will see other artifacts which occur
> as a result of the key press e.g. halo behavior, but the reporting is
> accurate.
>
> - jrm
>
>
> On Tue, Apr 4, 2017 at 7:04 AM, H. Hirzel <hannes.hirzel at gmail.com> wrote:
>
>> Hello,
>>
>> http://wiki.squeak.org/squeak/2332 'Mouse button tester'
>>
>> has
>>
>> m := Morph new.
>> m on: #mouseDown send: #value: to:[:evt|
>> evt redButtonPressed ifTrue:[m color: Color red].
>> evt yellowButtonPressed ifTrue:[m color: Color yellow].
>> evt blueButtonPressed ifTrue:[m color: Color blue]
>> ].
>> m openInWorld.
>>
>> red and yellow button work, but the blue button brings up the halo as
>> it is noted on the wiki page (tested with a three button mouse).
>>
>> I wonder if there is a way to make the change of the button to blue
>> possible?
>>
>> --Hannes
>>
>>
>
More information about the Squeak-dev
mailing list
|