function InputRequestMoveLeft() as integer result as integer if GetVirtualButtonExists(1) = 1 if GetVirtualButtonState(1) = 1 then result = 1 endif if GetRawKeyState(KEY_A) then result = 1 if GetRawKeyState(KEY_LEFT) then result = 1 endfunction result function InputRequestMoveRight() as integer result as integer if GetVirtualButtonExists(2) = 1 if GetVirtualButtonState(2) = 1 then result = 1 endif if GetRawKeyState(KEY_D) then result = 1 if GetRawKeyState(KEY_RIGHT) then result = 1 endfunction result function InputRequestShoot() as integer result as integer if GetVirtualButtonExists(3) = 1 if GetVirtualButtonState(3) = 1 then result = 1 endif if GetRawKeyPressed(KEY_X) then result = 1 if GetRawKeyPressed(KEY_SPACE) then result = 1 if GetRawKeyPressed(KEY_RSHFT) then result = 1 if GetRawKeyPressed(KEY_ENTER) then result = 1 endfunction result