Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

cross platform keyboard/mouse input recommendation [closed]

Does anyone have any suggestions for a good cross platform input library? I'd like to get:

* at least keyboard and mouse input
* on at least the big three operating systems
* Small/fast
* C or C++
* permissive licensing gpl2/mit/free/etc.

So far I've seen:

* OIS (used in Ogre) http://sourceforge.net/projects/wgois/
* SDL (used everywhere it seems, might be a clue) http://www.libsdl.org/index.php
* Allegro http://www.talula.demon.co.uk/allegro/readme.html

Has any one used any of these, or know of something else that might be good?

Thanks

like image 283
Jay Avatar asked Apr 11 '10 14:04

Jay


3 Answers

I've used SDL for long time, but it still doesn't support multiple windows, and version 2.0 officially supports multiple windows.

So, beyond those you cited, I add these 2:

  • GLFW
  • SFML
like image 57
jweyrich Avatar answered Oct 20 '22 04:10

jweyrich


SDL it is quite popular in game development (at least small games)

like image 40
Artyom Avatar answered Oct 20 '22 06:10

Artyom


I ended up using the Qt framework for this.

It's very complete, well supported, has a lot of features, and has better licensing now. It was possible to use it with the Ogre3d library so it worked out well for me. I also found that it's being used by the City of Heroes MMO for their user interface.

like image 44
Jay Avatar answered Oct 20 '22 06:10

Jay