If you have a problem or need to report a bug please email : support@dsprobotics.com
There are 3 sections to this support area:
DOWNLOADS: access to product manuals, support files and drivers
HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects
USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here
NEW REGISTRATIONS - please contact us if you wish to register on the forum
Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright
Ruby isKeyPressed method
3 posts
• Page 1 of 1
Ruby isKeyPressed method
Hello,
Is possible to detect the SPACE key using the isKeyPressed method ?
tks
Is possible to detect the SPACE key using the isKeyPressed method ?
tks
- arend
- Posts: 10
- Joined: Thu Sep 15, 2011 5:52 pm
Re: Ruby isKeyPressed method
Space - is character 32 and in the Ruby isKeyPressed function it needs to be a string:
So SPACE = '32' (not 32).
For other letters is easier just use the letter eg. 'q'
So SPACE = '32' (not 32).
For other letters is easier just use the letter eg. 'q'
- Attachments
-
- spacebar.fsm
- (357 Bytes) Downloaded 959 times
-
support - Posts: 151
- Joined: Fri Sep 07, 2012 2:10 pm
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 73 guests