http://GameProgrammer.Com

Programming

GP Mailing List
     Thread Index
     Date Index

ATXGPSIG List
     Thread Index
     Date Index

Google
>

Home

Wise2Food



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to captue enter, up, down, left, right and Fx



Well you kinda got it right,

When trying to snag key codes in dos
the extended keys (arrows,F(x) and esc) actually return two numbers-the
first of which is a zero.
the code in dos should be this

char c=getch();
if(!c)    // if c==0
 c = getch();        // return the extended key code



=================================================================
To SUBSCRIBE or UNSUBSCRIBE please visit
http://gameprogrammer.com/mailinglist.html