https://github.com/codeljo/virtual-mouse
Virtual Mouse for Linux and Android
https://github.com/codeljo/virtual-mouse
android linux mouse virtual
Last synced: 23 days ago
JSON representation
Virtual Mouse for Linux and Android
- Host: GitHub
- URL: https://github.com/codeljo/virtual-mouse
- Owner: codeljo
- License: mit
- Created: 2025-02-13T11:27:36.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-22T16:31:25.000Z (over 1 year ago)
- Last Synced: 2025-02-22T17:28:53.393Z (over 1 year ago)
- Topics: android, linux, mouse, virtual
- Language: C++
- Homepage:
- Size: 50.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Virtual Mouse for Linux and Android
### Use your keyboard or remote as a simple mouse.

## Usage
Function | Key / Button
-------------|------------------------------
Activate | `PLAY` (quickly double tap)
Deactivate | `ESC` or `HOME`
Mouse Move | `UP`, `DOWN`, `LEFT`, `RIGHT`
Mouse Click | `ENTER` or `SELECT`
Mouse Scroll | `REWIND`, `FAST-FORWARD`
## Running the app
**Linux**
```shell
sudo build/virtual-mouse
```
> Note: Depending on your systems /dev/input/ permissions you may need to run the app via `sudo`.
**Android**
```shell
adb connect ANDROID_IP_HERE
adb push android/libs/armeabi-v7a/virtual-mouse /data/local/tmp/
adb shell
chmod 755 /data/local/tmp/virtual-mouse
/data/local/tmp/virtual-mouse
```
## Build for Linux
```shell
make
```
> The compiled binary will be output to build/virtual-mouse
## Build for Android
```shell
export PATH=$PATH:/path/to/Android/Sdk/platform-tools/
export PATH=$PATH:/path/to/android-ndk/
export NDK_PROJECT_PATH=android/
ndk-build NDK_APPLICATION_MK=android/Application.mk
```
> The compiled binary will be output to android/libs/virtual-mouse
>
> Note: The Android build is compatible with Android 10 and lower.