Thread: Does Quake 4 and Doom 3 uses DirectInput in windows?

  1. #1
    Registered User
    Join Date
    May 2009
    Posts
    64

    Does Quake 4 and Doom 3 uses DirectInput in windows?

    I know in Linux it uses SDL. But in windows does it use DirectInput? Btw, does the GetKeyState in WinUser.h sucks?

  2. #2
    Registered User
    Join Date
    May 2006
    Posts
    903
    If I am not mistaken both of these games use OpenGL which works in other environments than Windows (i.e. I strongly believe they are not using SDL...)

    And what kind of question is that "does the GetKeyState in WinUser.h sucks" ?

  3. #3
    Registered User
    Join Date
    May 2009
    Posts
    64
    If I am not mistaken both of these games use OpenGL which works in other environments than Windows (i.e. I strongly believe they are not using SDL...)
    Ok I found a good source. It initialize DirectInput so I think it uses that. Here!

    And what kind of question is that "does the GetKeyState in WinUser.h sucks" ?
    I'm sorry if it is a bit off topic but I'm creating an input class for my multi-platform game engine
    so I ask if the GetKeyState is good enough.

    But I saw that most of the games uses directinput ( direct3d or not ). I think I'll use the same for my engine.

  4. #4
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,895
    Forget GetKeyState. It doesn't do what you think it does.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

Popular pages Recent additions subscribe to a feed