Implement keyboard/mouse control

To control the device from the computer:
 - retrieve mouse and keyboard SDL events;
 - convert them to Android events;
 - serialize them;
 - send them on the same socket used by the video stream (but in the
 opposite direction);
 - deserialize the events on the Android side;
 - inject them using the InputManager.
This commit is contained in:
Romain Vimont
2017-12-14 11:38:44 +01:00
parent 6605ab8e23
commit cabb102a04
23 changed files with 2999 additions and 101 deletions

View File

@@ -1,4 +1,4 @@
.PHONY: default release clean build-app build-server dist
.PHONY: default release clean build-app build-server dist dist-zip sums test
BUILD_DIR := build
DIST := dist
@@ -36,3 +36,7 @@ dist-zip: dist
sums:
cd "$(DIST)"; \
sha256sum *.zip > SHA256SUM.txt
test:
+$(MAKE) -C server test
ninja -C "$(BUILD_DIR)" test