[squeakland] Keyboard support

Bert Freudenberg bert at freudenbergs.de
Fri Feb 17 12:34:46 EST 2012


Okay, so here is the project, changed so the keys also work on a Mac.

I committed the changes to MacUnicodeInputInterpreter, but for now they are included in the project, too. 

- Bert -


On 17.02.2012, at 16:08, Bert Freudenberg wrote:

> Having this would be very nice. However, it's more complicated than that. It assumes the same keycode will be used for stroke events as for key up/down events. That is not how the VM delivers these events. It only works "by accident" on Windows, possibly on Linux, but certainly not on Mac.
> 
> I guess the easiest way to work around this would be by making the printKeyStringOn: method take into account Mac key codes. 
> 
> This probably would still have problems with international keyboards but maybe for stuff like cursor keys it would be okay.
> 
> - Bert -
> 
> On 17.02.2012, at 05:07, Steve Thomas wrote:
> 
>> Wow, I can actually hold down two keys at the same time and both are "executed"!!!
>> 
>> This has been a big problem for two player games.  Nice work.  
>> 
>> Unfortunately it doen't work on my Mac, I tried with Etoys 4.1 and 4..1.2 alpha 5.
>> 
>> So I am  personally coming to Argentina to complain!!!
>> (Okay, I am actually heading to Buenos Aires next week on business and hopefully I will be able to get time away from work and we can connect.)
>> 
>> Keep up the great work.
>> 
>> Thanks,
>> Stephen
>> 
>> On Thu, Feb 16, 2012 at 3:40 PM, karl ramberg <karlramberg at gmail.com> wrote:
>> Works great for me.
>> 
>> I only have Windows so I can't tell if it has platform issues.
>> 
>> Maybe we can mix it with this so the script can be triggered with a
>> #keyDown or #keyUp 'event' ?
>> http://tracker.squeakland.org/browse/SQ-331
>> 
>> With this the script does not need to be ticking to execute.
>> 
>> (On second thought I'm not sure if it's a good idea. But it can be
>> good to discuss  :-) )
>> 
>> Karl
>> 
>> 
>> On Thu, Feb 16, 2012 at 9:05 PM, Ricardo Moran <richi.moran at gmail.com> wrote:
>> > Hi,
>> >
>> > I know this is not in the 16 items list but I made a very simple project to
>> > enhance the keyboard support and I would like to get it considered for
>> > inclusion. It's based on the suggestions from Bert for my old project in
>> > GSoC.
>> > It's now a single-key morph and it compares the keyStrings (I don't know if
>> > this is good or bad). I hope it works across platforms (even if you have to
>> > reconfigure the keys when you open the project). I only have windows here so
>> > I would appreciate if someone can tell me if this works on Linux and Mac.
>> >
>> > Thanks,
>> > Richo
>> >
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakland.org/pipermail/squeakland/attachments/20120217/595d7589/attachment-0002.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: KeyPress.002.pr
Type: application/octet-stream
Size: 64045 bytes
Desc: not available
URL: <http://lists.squeakland.org/pipermail/squeakland/attachments/20120217/595d7589/attachment-0001.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakland.org/pipermail/squeakland/attachments/20120217/595d7589/attachment-0003.html>


More information about the squeakland mailing list