Let the computer think there still is a mouse attached
Find a file
Knut Ahlers b1808fda46
Initial version
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2023-07-04 18:52:14 +02:00
src Initial version 2023-07-04 18:52:14 +02:00
.gitignore Initial version 2023-07-04 18:52:14 +02:00
platformio.ini Initial version 2023-07-04 18:52:14 +02:00
README.md Initial version 2023-07-04 18:52:14 +02:00

Luzifer / attiny85-mouse

Using Barrier and every time you disconnect the mouse from the gaming PC all the games start freaking out and drawing mouse cursors? Just let them think there still is a mouse attached by emulating a mouse doing exactly nothing!

Requirements

Build

# platformio run -t upload
Processing attiny85 (platform: atmelavr; board: digispark-tiny; framework: arduino)
[...]
Linking .pio/build/attiny85/firmware.elf
Checking size .pio/build/attiny85/firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM:   [==        ]  18.0% (used 92 bytes from 512 bytes)
Flash: [====      ]  44.2% (used 2656 bytes from 6012 bytes)
Building .pio/build/attiny85/firmware.hex
Configuring upload protocol...
AVAILABLE: custom
CURRENT: upload_protocol = custom
Uploading .pio/build/attiny85/firmware.hex
> Please plug in the device (will time out in 60 seconds) ...
> Device is found!
connecting: 40% complete
> Device has firmware version 1.6
> Available space for user applications: 6012 bytes
> Suggested sleep time between sending pages: 8ms
> Whole page count: 94  page size: 64
> Erase function sleep duration: 752ms
parsing: 60% complete
> Erasing the memory ...
erasing: 80% complete
> Starting to upload ...
writing: 100% complete
>> Micronucleus done. Thank you!