GetKey()

a. Which key is currently handled and what effect does pressing this key
have on the application

b. Identify a relevant reference that explains these key codes and list in your report the codes for the following keys: left arrow, right arrow, up arrow, down arrow, space bar.

do
{
// Get user input (non-blocking) if it exists
WORD wKeyCode = GetKey();

// Process input to update application state
switch (wKeyCode)
{
case VK_ESCAPE:
bExit = true;
};

// Render the map state to the console
DrawMap(tileMap);

}
Topic archived. No new replies allowed.