I'm writing a game clone (pac man) and everything runs fine until the user holds down one of the arrow keys. My code is
if keypressed then ch := readkey; (readkey gets the character from the buffer)
I'm not sure if its the keypressed call or the readkey that freezes things until the key is released. Is there an interrupt than can be used (in line assembly) to get the keypressed character without waiting for the key to be released?
if keypressed then ch := readkey; (readkey gets the character from the buffer)
I'm not sure if its the keypressed call or the readkey that freezes things until the key is released. Is there an interrupt than can be used (in line assembly) to get the keypressed character without waiting for the key to be released?