Skip to main content
gamedev.net
🔒 Locked

Keyboard

Started by Hydra13 Feb 26, 2003 at 11:09 PM 1 replies 250+ views
Original Post
Hydra13
Hydra13
what is the command to make something rotate when a certain key is held... ie: case WM_KEYDOWN: { keys[wParam] = FALSE; if(left key is pressed) { glTranslatef(1.5f,0.0f,-6.0f); rtri+=3.0f; } }
bjmumblingmiles
bjmumblingmiles
virtual key codes
if (keys[VK_LEFT])
if (keys[VK_RIGHT])
if (keys[VK_UP])
if (keys[VK_DOWN])
if (keys[''a''])
if (keys[VK_NUMPAD8])
etc

Brian
Brian J
Hydra13
Hydra13
Thanks for the fast reply Brian!

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.