C Board  

Go Back   C Board > Community Boards > General Discussions

Reply
 
LinkBack Thread Tools Display Modes
Old 05-18-2009, 11:19 AM   #1
Registered User
 
Join Date: May 2009
Posts: 24
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?
sarah22 is offline   Reply With Quote
Old 05-18-2009, 01:18 PM   #2
Registered User
 
Join Date: May 2006
Posts: 894
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" ?
Desolation is offline   Reply With Quote
Old 05-18-2009, 07:57 PM   #3
Registered User
 
Join Date: May 2009
Posts: 24
Quote:
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!

Quote:
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.
sarah22 is offline   Reply With Quote
Old 05-19-2009, 05:27 AM   #4
Cat without Hat
 
CornedBee's Avatar
 
Join Date: Apr 2003
Posts: 8,492
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
CornedBee is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump


All times are GMT -6. The time now is 11:37 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

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