QB64 bug or exception?
#10
playing with key input because of other posts brought me to this horrible calamity.... the beeping doesn't stop if you press the spacebar/

Why?  It stops if you uncomment the _limit command it behaves like I'd expect but otherwise it keeps playing....

I don't understand why this happens.

Yes a _limit inside a loop is sensible .... but should this be expected? 

Code: (Select All)
Do
    If _KeyDown(32) Then Sound 1000, 0.1 'rerally don't press the spacebar you'll be sorry

    If _KeyDown(27) Then GoTo exitloop
    If _KeyDown(97) Then Print "A";

    _Display
    '_Limit 60
Loop
exitloop:

What is _limit actually doing?   Why does it work (just reads each key press) with _limit uncommented?
Reply


Messages In This Thread
QB64 bug or exception? - by Pete - 10-03-2022, 07:30 AM
RE: QB64 bug or exception? - by RhoSigma - 10-03-2022, 07:49 AM
RE: QB64 bug or exception? - by Pete - 10-03-2022, 11:11 AM
RE: QB64 bug or exception? - by James D Jarvis - 10-03-2022, 11:11 AM
RE: QB64 bug or exception? - by Pete - 10-03-2022, 11:19 AM
RE: QB64 bug or exception? - by James D Jarvis - 10-03-2022, 11:25 AM
RE: QB64 bug or exception? - by bplus - 10-03-2022, 02:46 PM
RE: QB64 bug or exception? - by TerryRitchie - 10-03-2022, 03:35 PM
RE: QB64 bug or exception? - by Pete - 10-03-2022, 05:22 PM
RE: QB64 bug or exception? - by James D Jarvis - 10-03-2022, 11:44 PM
RE: QB64 bug or exception? - by Pete - 10-04-2022, 12:10 AM
RE: QB64 bug or exception? - by James D Jarvis - 10-04-2022, 12:35 AM
RE: QB64 bug or exception? - by Pete - 10-04-2022, 12:52 AM
RE: QB64 bug or exception? - by mnrvovrfc - 10-04-2022, 02:05 AM



Users browsing this thread: 5 Guest(s)