Friday, August 12, 2022

πŸ†• _SNDWAVE and _TOUCHDEVICE

_SNDWAVE

The _SNDWAVE statement sets the soundwave pattern for all subsequent sounds produced by the SOUND  and BEEP  statements.

Syntax: _SNDWAVE waveform

waveformA literal string, a string variable, or the result of a string expression. Can be any one of the following values: sine (system default)squaresawtoothtriangle.

 _TOUCHDEVICE

The _TOUCHDEVICE function returns, TRUE (-1) or FALSE (0), whether or not the user's device is a touchscreen device. The result of this function can be used to decide how to get input from the user:

  • if the user has a physical keyboard, the program can get keyboard input from either or both of:
    • The Console Keyboard Input Functions 
    • The "Popup Box" Functions 
  • if the user has a touchscreen keyboard, the progam can get "virtual keyboard" input from:
    • The "Popup Box" Functions 
  • (touching the console window has the same effect as mouse-clicks)

Syntax: _TOUCHDEVICE

Return value: TRUE (-1) or FALSE (0)


SOUND TESTER:



No comments:

Post a Comment

πŸ–₯ Pongy game

This program is a port (and slight mod) of the QB64pe program by SierraKen.  (SierraKen's program shared with the QB64pe community in th...