void keyboard(unsigned char key, int x, int y) { switch(key) { case 'w': case 'W': w = true; Gerad.SetBack(); Gerad.SetWalkStatus(); break; case 's': case 'S': s = true; Gerad.SetFront(); Gerad.SetWalkStatus(); break; case 'a': case 'A': a = true; Gerad.SetLeft(); Gerad.SetWalkStatus(); break; case 'd': case 'D': d = true; Gerad.SetRight(); Gerad.SetWalkStatus(); break; case 'i': case 'I': InMenu = !InMenu; break; case 13: CheckNPC(); break; case 27: exit(0); break; default: break; } }
void SetLeft() { Gerad.SetLeft(); }