Advertisement

Alternative to DirectInput?

Started by September 14, 2000 01:47 AM
2 comments, last by XBTC 24 years, 2 months ago
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!
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
Steve 'Sly' Williams  Monkey Wrangler  Krome Studios
turbo game development with Borland compilers
Advertisement
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.
>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!






This topic is closed to new replies.

Advertisement