Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
up vote 4 down vote accepted

SDL and SFML are cross-platform and widely used.

share|improve this answer

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

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

share|improve this answer

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