跨平台键盘/鼠标输入推荐

时间:2010-04-11 14:32:51

标签: c++ c input cross-platform

有没有人对一个好的跨平台输入库有任何建议? 我想得到:

* 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.

到目前为止,我见过:

* 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

有没有人使用其中任何一种,或者知道其他可能有用的东西?

由于

3 个答案:

答案 0 :(得分:4)

我长时间使用SDL,但它仍然不支持多个窗口,version 2.0 officially supports multiple windows

所以,除了你引用的那些之外,我还要加上这两个:

答案 1 :(得分:2)

SDL在游戏开发中非常受欢迎(至少是小游戏)

答案 2 :(得分:1)

我最终使用了Qt框架。

它非常完整,受到良好支持,具有很多功能,现在拥有更好的许可。可以将它与Ogre3d库一起使用,因此对我来说效果很好。我还发现它被英雄城市MMO用于他们的用户界面。

相关问题