]> gitweb.factorcode.org Git - factor.git/commit
linux.input-events: Add support for /dev/input/event* devices.
authorDoug Coleman <doug.coleman@gmail.com>
Mon, 22 Feb 2021 07:40:21 +0000 (01:40 -0600)
committerDoug Coleman <doug.coleman@gmail.com>
Mon, 22 Feb 2021 08:15:40 +0000 (02:15 -0600)
commit16c60c416dcaf58827b71f298012390d39518a8a
treea6b6b8913fd154da92625f832ba33d0c62db6724
parent53e97cf1b7bba142903e7e4d7f49279939711b53
linux.input-events: Add support for /dev/input/event* devices.

Pretty complete but needs integration into the game.input framework
and some examples of force feedback.

! To read a mouse:
get-input-events-mice first second <linux-controller> read-controller-loop

! To read a keyboard:
get-input-events-keyboards first second <linux-controller> read-controller-loop

! Show all devices
all-controller-stats ...

! linux util to do similar stuff
evtest /dev/input/event256
basis/game/input/gtk/gtk.factor
basis/unix/time/time.factor
basis/unix/types/linux/linux.factor
extra/linux/input-events/authors.txt [new file with mode: 0644]
extra/linux/input-events/ffi/authors.txt [new file with mode: 0644]
extra/linux/input-events/ffi/ffi.factor [new file with mode: 0644]
extra/linux/input-events/ffi/platforms.txt [new file with mode: 0644]
extra/linux/input-events/input-events.factor [new file with mode: 0644]
extra/linux/input-events/platforms.txt [new file with mode: 0644]