blob: 22d4bde07dea8410204bd5e91e0591fbd9011417 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# vrising-camera
This Python script rotates the camera in V-Rising using the Q and E keys on Linux because the game doesn't support bindings that rotate the camera. It uses `uinput` to emulate a right click and drag.
## Usage
Your user must be part of the input group.
```
sudo usermod -aG input $USER
```
Log out/in, then run the script.
```
./vrising-cam.py
```
### Options
| Flag | Meaning |
| ---------------------- | ------------------------------------------------------------------------------------------------------------------- |
| `--speed N` | rotation speed in relative X units per second (default `2000`) |
| `--tick-ms N` | milliseconds between motion ticks (default `1.0`; lower = smoother, higher = lighter) |
| `--ease SECONDS` | ramp speed up over `SECONDS` on press and decay on release (`0` = off; try `0.15`) |
| `--invert` | swap the rotation direction of Q and E |
| `-v`, `--verbose` | log key presses/releases, RMB injection, measured motion rate |
| `--test-rmb [SECONDS]` | self-test: hold the injected RMB for `SECONDS` (default 3) and read events back from the kernel; no keyboard needed |
| `--check` | show detected keyboards, uinput and grab status, then exit |
|