Skip to main content
GameDev.net gamedev.net
🔒 Locked

Alternative to DirectInput?

Started by XBTC Sep 14, 2000 at 1:47 AM 2 replies 4.1k views
Original Post
XBTC
XBTC
Hi! I want to code a good input class for my Q3-Viewer now and thougt about using DirectInput but guess what?Looking in the Directx7SDK just was a shock(again).Not to offend anyone but can a code written with DX7 called readable?Why has every fucking little var to be called with some 20 letters? Anyway I don´t want to start a discussion about DirectX here(I use OpenGL for graphics and dunno much enough about DX), my question is: Is there another way to handle input for a 3d-shooter fast\efficient for windows?What does Q3 use(Does it really use DInput - they ported it to linux\mac)? Thanx in advance,XBTC!
Sly
Sly
AFAIK, Q3 uses DirectInput and DirectSound. The alternative to DirectInput is the standard Windows message queue, which is definitely not fast or efficient.

DirectInput is one of the easier modules of DirectX to implement. I wrapped DirectInput mouse and keyboard into Delphi classes in one night. So keep at it. The end result is worth it.




Steve 'Sly' Williams
Tools Developer
Krome Studios
gmcbay
gmcbay
Check out SDL (www.libsdl.org).

SDL is basically the same sort of functionality as you find in DirectX (Sound, Networking, Input, Surface Drawing, etc), but portable (uses DirectX under Windows, other technologies under other platforms (Linux, MacOS, BeOS). I find the interface is often much nicer to work with than DirectX, even if you are going to only deploy on Windows.

Also, its fully compatible with OpenGL.
XBTC
XBTC
>DirectInput is one of the easier modules of DirectX to implement. I wrapped DirectInput mouse and keyboard into Delphi classes in one night. So keep at it. The end result is worth it.<

Yes it isn´t too difficult but too ugly....

>Check out SDL (www.libsdl.org).

SDL is basically the same sort of functionality as you find in DirectX (Sound, Networking, Input, Surface Drawing, etc), but portable (uses DirectX under Windows, other technologies under other platforms (Linux, MacOS, BeOS). I find the interface is often much nicer to work with than DirectX, even if you are going to only deploy on Windows.

Also, its fully compatible with OpenGL.<

Sounds interesting thanx for the link....

Greets,XBTC!






Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.