2 releases
0.2.3 | Nov 3, 2023 |
---|---|
0.2.1 | Oct 14, 2023 |
#1048 in Hardware support
26KB
602 lines
AIMU
- Userspace IMU-assisted aiming for Linux.
- Maps accelerometer+gyroscope motions to virtual mouse movements.
- Accounts for angle between screen and keyboard (configurable).
Usage
- Prepare the system.
- BMI160 only: Disable
bmi160_i2c
andbmi160_core
kernel modules.sudo rmmod bmi160_i2c bmi160_core
- Enable
i2c_dev
kernel module.sudo modprobe i2c_dev
- Add user to
i2c
group.sudo usermod -aG i2c $(whoami) newgrp i2c
- BMI160 only: Disable
- Build and run:
- Default: Dynamic dispatch (less performant, more convenient):
- Build and run:
cargo run --release -- --help
- Build and run:
- Static dispatch (more performant, less convenient):
- Tweak default values in source code.
- Build and run:
# Optional: add `--features cli` for command line options cargo run --release --features bmi160 -- --help # or cargo run --release --features bmi260 -- --help
- Default: Dynamic dispatch (less performant, more convenient):
TODO
- Revisit virtual gamepad/joystick (separate branch)
- Expand trigger mappings
- Add configuration file and env parsing
Aknowledgements
Dependencies
~10–15MB
~334K SLoC