no VK_W?

This is a discussion on no VK_W? within the Windows Programming forums, part of the Platform Specific Boards category; trying to test for player input, using if (VK_W)..., but it gives me an error and it says it is ...

  1. #1
    Registered User
    Join Date
    Aug 2001
    Posts
    106

    no VK_W?

    trying to test for player input, using if (VK_W)..., but it gives me an error and it says it is an undeclared identified. any clue whats going on?
    thanks again.

  2. #2
    Registered User
    Join Date
    Apr 2002
    Posts
    1,571
    They aren't defined.

    You can use 'w' or 'W' to check or you can find the actual hex code from the wParam of a keydown. For w I believe its 0x57

  3. #3
    Registered User
    Join Date
    Aug 2001
    Posts
    106
    cool, ill try that, thanks a lot.

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21