Linux 输入设备共享程序: RInput

是否在调试中因频繁切换 Target 和 Host 的输入设备而感觉头大?是否因为 Target 主机的键盘不适应还感到不爽?RInput
帮你解决这个问题,它可以通过定义的一个按键来将 Host 主机的输入设备在两个主机间切换。

How to Build
Linux:

git clone --recursive https://gitlab.com/hev/hev-rinput
cd hev-rinput
make

Android:

mkdir hev-rinput
cd hev-rinput
git clone --recursive https://gitlab.com/hev/hev-rinput jni
ndk-build

How to Use
Receiver:

cat conf/main.ini
[Main]
Port=6380
Address=0.0.0.0
 
sudo bin/hev-rinput conf/main.ini

Sender:

cat conf/main.ini
[Main]
Port=6380
Address=192.168.1.2
; See /usr/include/linux/input-event-codes.h
SwitchKeyCode=119
 
sudo bin/hev-rinput conf/main.ini

默认 Switch Key
Pause

Over!

Leave a Reply

Your email address will not be published. Required fields are marked *