[etoys-dev] [squeakland] Keyboard support

Ricardo Moran richi.moran at gmail.com
Sun Feb 19 17:54:30 EST 2012


Hi, I've been having some problems with my internet connection for the last
couple of days, but I'm really happy you solved the cross-platform problem.
Thanks, Bert :)

Cheers,
Richo


On Fri, Feb 17, 2012 at 2:34 PM, Bert Freudenberg <bert at freudenbergs.de>wrote:

> 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
>> >
>>
>
> _______________________________________________
> squeakland mailing list
> squeakland at squeakland.org
> http://lists.squeakland.org/mailman/listinfo/squeakland
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakland.org/pipermail/etoys-dev/attachments/20120219/8e5c7690/attachment.html>


More information about the etoys-dev mailing list