Project

General

Profile

Actions

Bug #749

open

Clear Key not working properly

Added by Paul Kitching about 3 years ago. Updated almost 3 years ago.

Status:
Resolved
Priority:
Normal
Target version:
-
Start date:
05/14/2021
Due date:
% Done:

0%

Estimated time:
Affected version:

Description

pen 1
do
    locate 1,1:print rnd(10)
    if key state(80)                    // p to pause
        locate 0,4:centre "Paused"
        wait 0.5
        clear key
    //x$=inkey$
        while inkey$=""
            wait vbl
        wend
        cls
    end if
    wait vbl
loop
end

Pressing p should pause until you press a key again, but it doesn't. If you remove the clear key and add in the x$=inkey$ (to clear the buffer) it then works.

Actions #1

Updated by David Baldwin about 3 years ago

Fixed!

Actions #2

Updated by Francois Lionet almost 3 years ago

  • Status changed from New to Resolved

Fixed!

Actions

Also available in: Atom PDF