You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.
Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.
ley as integer 
Keys_Down (ley) // Checks whether a letter is currently down and stores all scancode numbers and the amount of letters down in ley
print (ley) : for x = 1 to ley : print(ley[x]) : next x // displays amount of letter and scancode numbers - here is where the mistake occurs
if GetPointerPressed() = 1 then end : Sync()
Function Keys_Down (keys_down ref as integer )
keys_down.length = 0
for x = 65 to 90 : If GetRawKeyState(x) = 1 then keys_down.insert(x) : next x
Login to post a reply