Does Quake 4 and Doom 3 uses DirectInput in windows?

This is a discussion on Does Quake 4 and Doom 3 uses DirectInput in windows? within the A Brief History of Cprogramming.com forums, part of the Community Boards category; I know in Linux it uses SDL. But in windows does it use DirectInput? Btw, does the GetKeyState in WinUser.h ...

  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,893
    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

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