10-04-2022, 12:35 AM
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)
argggh.
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: