[etoys-dev] [squeakland] Keyboard support

Bert Freudenberg bert at freudenbergs.de
Fri Feb 17 10:08:45 EST 2012


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
> >
> > _______________________________________________
> > etoys-dev mailing list
> > etoys-dev at squeakland.org
> > http://lists.squeakland.org/mailman/listinfo/etoys-dev
> >
> _______________________________________________
> squeakland mailing list
> squeakland at squeakland.org
> http://lists.squeakland.org/mailman/listinfo/squeakland
> 
> _______________________________________________
> etoys-dev mailing list
> etoys-dev at squeakland.org
> http://lists.squeakland.org/mailman/listinfo/etoys-dev

-------------- n?chster Teil --------------
Ein Dateianhang mit HTML-Daten wurde abgetrennt...
URL: <http://lists.squeakland.org/pipermail/etoys-dev/attachments/20120217/d91a49f9/attachment-0001.html>


More information about the etoys-dev mailing list