Re: [Pharo-users] InputEventSensor and polling

2013-05-15 Thread Eric Clack
* keyPressed := nil* > * ] ifFalse: [ * > * keyPressed := evt at: 3 ].* > ^evt]. > "Handle all events other than Keyborad or Mouse." > ^evt. > Then I use this: > > *InputEventSensor>>keyPressed: asciiValue* > "Is this key being pressed?" > self nextEvent. > ^keyPressed = asciiValue > > So should I be doing this? Should I test out these changes and suggest a > patch to Pharo? I'm happy that the answer might be "no", but what can I try > instead? > > Thanks for your help. > -Eric. > > > -- > Eric Clack > ericcl...@googlemail.com > East Sussex, England. > > > > -- Eric Clack ericcl...@googlemail.com East Sussex, England.

Re: [Pharo-users] InputEventSensor and polling

2013-05-15 Thread Eric Clack
^evt. Then I use this: *InputEventSensor>>keyPressed: asciiValue* "Is this key being pressed?" self nextEvent. ^keyPressed = asciiValue So should I be doing this? Should I test out these changes and suggest a patch to Pharo? I'm happy that the answer might be "no", but what can I try instead? Thanks for your help. -Eric. -- Eric Clack ericcl...@googlemail.com East Sussex, England.

[Pharo-users] InputEventSensor and polling

2013-05-15 Thread Eric Clack
x27;. So, let me know what you think. I'm happy to provide more info and to research better solutions, let me know... Finally, apologies for the long post! Best regards, -Eric. -- Eric Clack ericcl...@googlemail.com East Sussex, England. <>