[Sugar-devel] ASCII keypresses

James Cameron quozl at laptop.org
Sun Aug 28 23:00:31 EDT 2011


On Tue, Aug 23, 2011 at 02:45:49PM -0400, Art Hunkins wrote:
> One problem remained, for my Csound program: a *bonafide repeat
> keypress* could not be recognized. So I modified the python code to
> send along an ASCII "0" when a key is released; this tells Csound
> that the following "repeat" is a bonafide keypress.

I don't think that is the right way to do it.  It would not work with
rollover, where a key release occurs just after a legitimate key press.

e.g. 

1 press
2 press
1 release
2 release

Instead you would have to track state by key.

-- 
James Cameron
http://quozl.linux.org.au/


More information about the Sugar-devel mailing list