Skip to content

Create virtual keyboard, mouse, or joystick and send events like key press, mouse pointer movement or joystick axis over the tcp socket connection. Can also send real device events (Alpha feature).

Notifications You must be signed in to change notification settings

nmelihsensoy/virtual-hid-tcp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Virtual HID over TCP

A HID device emulation which can be controlled remotely over network.You can create joystick, keyboard or mouse device and send events like joystick axis and buttons, keyboard key presses, mouse pointer movements over network.With new client real device events can be sent.So its perfectly fit for keyboard, mouse sharing.

Server side is written in C and currently works only in Linux.But client side is platform independent so can be written in any platform&language with using tcp socket connection.

Supported event codes are found here : here

Installation

git clone https://github.com/nmelihsensoy/virtual-hid-tcp.git
cd virtual-hid-tcp/

Server

cd server/
make
cd bin/
./server

Client

C/C++ Client

If your server located in diffrent pc then set server ip adress with -ip 11.11.11.11 option.

cd clients/C_Cpp/
make
./client --help

For Real Mouse Sharing

cd clients/C_Cpp/mouse
make
sudo ./mouse_client 127.0.0.1

Key Press

115 -> Volume Up // 114 -> Volume Down

./client -k 115

Mouse Pointer

-pX -pY

./client -pX 20

Python Client

Key Press

115 -> Volume Up // 114 -> Volume Down

python client.py -k 114

Mouse Pointer

-pX -pY

python client.py -pX 20

About

Create virtual keyboard, mouse, or joystick and send events like key press, mouse pointer movement or joystick axis over the tcp socket connection. Can also send real device events (Alpha feature).

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published