代码之家  ›  专栏  ›  技术社区  ›  Jay

跨平台键盘/鼠标输入建议[关闭]

  •  13
  • Jay  · 技术社区  · 16 年前

    有人对一个好的跨平台输入库有什么建议吗? 我想得到:

    * 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 回复  |  直到 10 年前
        1
  •  4
  •   jweyrich    12 年前

    我用SDL已经很久了, 但它仍然不支持多个窗口, version 2.0 officially supports multiple windows .

    所以,除了你提到的,我再加上这2点:

        2
  •  2
  •   Artyom    16 年前

    它在游戏开发中非常流行(至少是小游戏)

        3
  •  1
  •   Jay    14 年前

    我最终使用了qt框架。

    它非常完整,支持良好,有很多功能,现在有更好的许可证。它可以与ogre3d库一起使用,所以对我来说效果很好。我还发现英雄之城的mmo正在使用它作为他们的用户界面。