Linux/X11 input library without creating a window

后端 未结 2 763
悲&欢浪女
悲&欢浪女 2020-12-18 02:32

Is there a good library to use for gathering user input in Linux from the mouse/keyboard/joystick that doesn\'t force you to create a visible window to do so? SDL lets you

2条回答
  •  别那么骄傲
    2020-12-18 02:50

    For the mouse you can use GPM.

    I'm not sure off the top of my head for keyboard or joystick.

    It probably wouldn't be too bad to read directly off there /dev files if need be.

    Hope it helps

提交回复
热议问题