Archived

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

Danny Pellegrene

Quick question...

Recommended Posts

I windows i use direct input, takes some getting use to but its quite powerfull. Other then that i would suggest you use SDL. I don''t recommend writing your own keyboard layer unless you are crazy..

Later, Ben

Share this post


Link to post
Share on other sites
quote:

I don''t recommend writing your own keyboard layer unless you are crazy



Can you explain why not? I use opengl and dont want to use directX if i can help it. It would be nice to have my own keyboard input library. Is it too difficult, or not cross platform, or what?

Share this post


Link to post
Share on other sites
I use SDL for my stuff. I like it because I don't have to worry about window creation and it makes it really easy to port to other platforms. While I doubt that SDL input is as powerful as directx input (I really have no information to base that on, just a guess), it works great for me.

[edit]I use opengl and SDL works fine with it.[/edit]

[edited by - Mr Grinch on November 16, 2003 10:23:58 PM]

Share this post


Link to post
Share on other sites
Nobody uses getc(), it''s for console apps.

Just catch the keypressed event if you want to catch eg. the esc key for quitting. Or keydown/keyup to track movement.
But it''s probably better to use directinput when playing.

Share this post


Link to post
Share on other sites