bool OnKeyPress(int a_iKey) // THis is called by the 'MainLoop' when standard input is selected { if (oRobot.IsAlive()) oRobot.OnKeyPress(a_iKey); return oRobot.IsAlive(); // Returns if the program should continue or not }
bool Handle() // This is called by the 'MainLoop' when text input is selected { if (oRobot.IsAlive()) oRobot.Handle(); return oRobot.IsAlive(); // Returns if the program should continue or not }