just wondering how to do this code, because i have 2 if statements in different functions, one says to do one thing if it gets left arrow, other one does something different when left arrow is it.
void function1 ()
if(key==KEY_LEFT) //already declared key left before
void function2 ()
this code makes it always say "item one" and doesn't work when it is in the second funcion. help would be appreciated