Re: HSP: If key pressed?
You need to use getkey, but you must manually implement one-time key triggering. Without that, it returns 1 whenever the key is down.
a=0
a_hold=0
repeat
await 16
getkey a,65
if a==0:a_hold=0
if a==1:if a_hold==0:{
a_hold=1
//do something
}
loop
If you want to manage multiple keys, use a 2d array.
KeyCodes are same as win32 key code enums.
-- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector