#19 problems with inkey and play commands

0.9.7
closed
5
2015-06-11
2007-02-18
No

The inkey$ and the play commands have problems in SmallBasic version FLTK0.9.7!
e.g.
Code:
cls
while not inkey$
play "abc"
wend

In this example, the computer plays a sound only, when a key is holding down! Crying or Very sad

Code:
cls
play "mbab" 'MB=play background

Here, the computer doesn't play any sound!

Discussion

  • Chris Warren-Smith

    1. INKEY will return an empty string when there is no current keyboard key.
    2. Background play was implemented in the FLTK version several revisions ago. It is also supported in SDL/runtime version.
     
  • Chris Warren-Smith

    • status: open --> closed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks