Support

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

For general discussion related FlowStone

Ruby isKeyPressed method

Postby arend » Sat Oct 13, 2012 9:23 pm

Hello,
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

Postby support » Sun Oct 14, 2012 12:58 pm

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 9894 times


For other letters is easier just use the letter eg. 'q'
Attachments
spacebar.fsm
(357 Bytes) Downloaded 958 times
User avatar
support
 
Posts: 151
Joined: Fri Sep 07, 2012 2:10 pm

Re: Ruby isKeyPressed method

Postby arend » Sun Oct 14, 2012 10:47 pm

Thank you !
arend
 
Posts: 10
Joined: Thu Sep 15, 2011 5:52 pm


Return to General

Who is online

Users browsing this forum: Google [Bot] and 41 guests