[etoys-notify] [JIRA] Updated: (SQ-331) Better keyboard support for games

Karl Ramberg (JIRA) tracker at squeakland.org
Sat Feb 13 14:40:47 EST 2010

     [ http://tracker.squeakland.org/browse/SQ-331?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Karl Ramberg updated SQ-331:

    Attachment: KeystrokeScriptInstatiation.4.cs

"Change Set:		KeystrokeScriptInstatiation
Date:			13 February 2010
Author:			Karl Ramberg

Enables the #keyStroke #keyDown and #keyUp script instatiation with global scope. Scripts trigger on event  #keyStroke #keyDown and #keyUp and do not need to be ticking. You still need to test for which key that was hit to differentiate different behaviour. Also the scripts do not run continously. For this to work smoother, and pick up different keystrokes simultanously deeper hacking is needed"

> Better keyboard support for games
> ---------------------------------
>                 Key: SQ-331
>                 URL: http://tracker.squeakland.org/browse/SQ-331
>             Project: squeakland
>          Issue Type: Feature
>          Components: etoys
>            Reporter: Bert Freudenberg
>            Priority: Optional
>             Fix For: etoys 5 and showcase
>         Attachments: KeystrokeScriptInstatiation.1.cs, KeystrokeScriptInstatiation.4.cs
> To help making interactive games I propose to add a tile to the World's viewer to check if a specific key is currently pressed or not. This would allow for far more accurate game controls than the current "last key stroke" tile, also it allows to press multiple keys at once (e.g., to move diagonally by pressing both up and right, while hammering on the space key).
> Implementation-wise this would need a set of currently held down keys. To not lose very short key presses we need to make sure that a keydown/keyup pair received in the same world cycle still is registered for this one cycle.
> The implementation is a bit complicated by the fact that key up/down codes differ significantly by platform and possibly by keyboard layout.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators: http://tracker.squeakland.org/secure/Administrators.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the etoys-notify mailing list