Archived

This topic is now archived and is closed to further replies.

Input without DirectX, Allegro or GLUT

This topic is 5315 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I know this is a wierd question, but is there an alternative to the big 3? The reasons: - Don''t like microsoft - Allegro is BLOATware - GLUT is (in my experience) EVIL!!! Any suggestions? (By input, I mean keyboard and mouse )

Share this post


Link to post
Share on other sites
The Windows message API. It is your friend. It is also bloody slow and unreliable. But you could use it.

If you don't want to use Windows's nice smooth driver layer which guarantees that you will have proper input from the devices, you can always write your own real-mode ASM drivers that poll the appropriate ports. Of course, that would require support for XT, PS2, and USB keyboards, as well as translation of keycodes from the thousands of layouts that exist. Oh, and be sure to write code to handle the COM, PS2, USB, and laptop-internal-hacked-into-the-PS2-bus mice.

Almost forgot: you'll have to deal with mice and keyboards that send data at varying frequencies, mice with differing mickey ratios (if indeed they still vary these days, the last time I programmed direct mouse input was back in the Win16 era), and even the dreaded multi-button mouse.


Well well, that's a boatload of work ain't it? That's kind of what DirectInput et. al. were created for, ya know?



[edited by - ApochPiQ on May 26, 2003 10:48:53 AM]

Share this post


Link to post
Share on other sites
quote:
Original post by fana
I know this is a wierd question, but is there an alternative to the big 3?

The reasons:
- Don't like microsoft
- Allegro is BLOATware
- GLUT is (in my experience) EVIL!!!

Any suggestions?

(By input, I mean keyboard and mouse )


they are not any good reasons to leave an api. use your head not your emotions or Use ASM.

[edited by - DirectXXX on May 26, 2003 10:58:43 AM]

Share this post


Link to post
Share on other sites
Sorry, forgot to mention that win32 is evil as well...

If no other options, i''m to lazy to do it my self...

So it looks like directinput for me then.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
If you insist on bashing Microsoft for no real reason, why don''t you code for Linux and spare us your zealotry?

Share this post


Link to post
Share on other sites