On Wed, Sep 16, 2009 at 11:08 AM, jikjik <[email protected]> wrote: > > but my problem is how to accept inputs from the ARROW KEYS? we can assign the > key A as turn left, key D as turn right, key W as up and S as Down. But i > dont want to use the alphabetic keys of the keyboard. I want to use the ARROW > KEYS. like if I press the left arrow, the snake will turn left, the UP > arrow, the snake will go up and so on. >
sa windows, pareha ra gihapon sa dos times, you may use the kbhit() and getch() funcs sa *nix, termios or curses or ncurses. paghimo sa ug gamay nga code. tan-awon nato unsa atong madugang pa dayon... kind regards -botp _________________________________________________ Kagay-Anon Linux Users' Group (KLUG) Mailing List [email protected] (http://lists.linux.org.ph/mailman/listinfo/klug) Searchable Archives: http://archives.free.net.ph
