Search:

Type: Posts; User: Divx

Search: Search took 0.01 seconds.

  1. Replies
    38
    Views
    140,192

    Sticky: if (KEY_DOWN(vk_code)) { while...

    if (KEY_DOWN(vk_code))
    {
    while (!KEY_UP(vk_code))
    {
    // do action while key is down and not up
    }
    // do whatever when key is let go

    // Suggest doing this to flush the standard input...
  2. Replies
    38
    Views
    140,192

    Sticky: The virtual key codes are found in winuser.h...

    The virtual key codes are found in winuser.h (which including windows.h will include)

    Here are a couple of macros you can use to check the state of a key.

    KEY_DOWN(vk_code)...
Results 1 to 2 of 2