mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
Xorg input driver (#53)
* add xf86 input driver. * cleanup. * rewrite to unix socket PoC. * add input rebuild. * lint & docs. * add input driver struct. * comments, lint, socket name from config. * add touch events to webrtc. * switch to uint32. * misc update logging & linting, * fix screen size * set touchscreen as core pointer. * add touch to ws control. * SendCoreEvents. * extract to own xinput folder. * add debounce. * switch pressure to uint8. * check buffer size. * send touch events with system init.
This commit is contained in:
32
dev/rebuild.input
Executable file
32
dev/rebuild.input
Executable file
@ -0,0 +1,32 @@
|
||||
#!/bin/bash
|
||||
cd "$(dirname "$0")"
|
||||
cd ../xorg/xf86-input-neko
|
||||
|
||||
#
|
||||
# aborting if any command returns a non-zero value
|
||||
set -e
|
||||
|
||||
#
|
||||
# check if docker image exists
|
||||
if [ -z "$(docker images -q xf86-input-neko)" ]; then
|
||||
echo "Docker image not found, building it"
|
||||
docker build -t xf86-input-neko .
|
||||
fi
|
||||
|
||||
#
|
||||
# if there is no ./configure script, run autogen.sh and configure
|
||||
if [ ! -f ./configure ]; then
|
||||
docker run -v $PWD/:/app --rm xf86-input-neko bash -c './autogen.sh && ./configure'
|
||||
fi
|
||||
|
||||
#
|
||||
# make install
|
||||
docker run -v $PWD/:/app --rm xf86-input-neko bash -c 'make && make install DESTDIR=/app/build'
|
||||
|
||||
#
|
||||
# replace input driver in container
|
||||
docker cp "${PWD}/build/usr/local/lib/xorg/modules/input/neko_drv.so" neko_server_dev:/usr/lib/xorg/modules/input/neko_drv.so
|
||||
|
||||
#
|
||||
# restart server
|
||||
docker exec neko_server_dev supervisorctl -c /etc/neko/supervisord.conf restart x-server
|
Reference in New Issue
Block a user