QB64 bug or exception?
#12
It happens with printing "A" as well, not just the sound in that last example.

check this out... I can get 3,4,5, even 6 keys to read on one pass through the loop.... but up and down arrows don't always seem to get noticed. ... on my laptop.  BUT on my separate usb keyboard I can get all 4 arrows at the same time and the space key (both keyboards are talking to the same computer)


Code: (Select All)
Do
    _Limit 60
    kv = 0
    If _KeyDown(32) Then
        Sound 1000, 0.1
        kv = kv + 1
    End If
    If _KeyDown(27) Then GoTo exitloop
    If _KeyDown(97) Then
        Print "A";
        kv = kv + 2
    End If
    If _KeyDown(98) Then
        Print "B";
        kv = kv + 64
    End If
    If _KeyDown(99) Then
        Print "C";
        kv = kv + 128
    End If


    If _KeyDown(19200) Then
        Print "<-";
        kv = kv + 4
    End If
    If _KeyDown(19712) Then
        Print "->";
        kv = kv + 8
    End If
    If _KeyDown(18432) Then
        Print "up";
        kv = kv + 16
    End If
    If _KeyDown(20480) Then
        Print "down";
        kv = kv + 32
    End If

    If kv <> 0 Then Print kv;

Loop
exitloop:
argggh.
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: 3 Guest(s)