Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

What should I use to handle input? I am wanting to use OpenGL so that my games are cross platform. DirectX provides input libraries, and OpenGL does not. Because my games need to be cross platform, I cannot use DirectX's libraries. What should I do, or what is the common solution to this type of problem?

share|improve this question

closed as off-topic by Byte56 Nov 7 '13 at 23:34

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions that are about "which tech to use" are outside the scope of the site. For more information, see this meta post" – Byte56
If this question can be reworded to fit the rules in the help center, please edit the question.

    
What platforms exactly? –  Maik Semder Aug 3 '11 at 5:59
add comment

3 Answers 3

up vote 4 down vote accepted

SDL and SFML are cross-platform and widely used.

share|improve this answer
add comment

DirectInput is quite deprecated, as far as I know, and very rarely used. If you're using OGL directly and not through any abstraction, then you will have to go to the operating system API to collect input, or use an abstracting library that has already done this work like SDL, SFML and more.

share|improve this answer
add comment

OIS is a good input library but it doesn't support mac very well.

share|improve this answer
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.