Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
reading simultaneous keys pressed
#7
yes, it works now, but i'm really looking for simultaneous keys pressed from all semirows, like from this example:

the code below works, it reads from both cursors and 'wsad' keys
Code:
cls
main:
print at 0,0;" "
v1=((255-(in 64510)) band 2)/2 bor ((255-(in 65022)) band 2) bor ((255-(in 65022)) band 1)*4 bor ((255-(in 65022)) band 4)*2
v2=((255-(in 61438)) band 8)/8 bor ((255-(in 61438)) band 16)/8 bor ((255-(in 63486)) band 16)/4 bor ((255-(in 61438)) band 4)*2
v3=v1 bor v2
print v3;" "
goto main
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)