Page 1 of 1

Ruby isKeyPressed method

Posted: Sat Oct 13, 2012 9:23 pm
by arend
Hello,
Is possible to detect the SPACE key using the isKeyPressed method ?
tks

Re: Ruby isKeyPressed method

Posted: Sun Oct 14, 2012 12:58 pm
by support
Space - is character 32 and in the Ruby isKeyPressed function it needs to be a string:

So SPACE = '32' (not 32).

spacebar clip.png
spacebar clip.png (22.59 KiB) Viewed 10612 times


For other letters is easier just use the letter eg. 'q'

Re: Ruby isKeyPressed method

Posted: Sun Oct 14, 2012 10:47 pm
by arend
Thank you !