Add project files.

This commit is contained in:
2025-11-01 19:43:40 +08:00
parent c116eefd59
commit cea63325a5
9 changed files with 365 additions and 0 deletions

15
README.md Normal file
View File

@@ -0,0 +1,15 @@
# PowerPlay Toggle
A simple solution to toggle a Logitech PowerPlay mat off when SteamVR launches and back on when it closes.
## Requirements
* Logitech G-Hub needs to be running.
## How it works
This application uses WMI (Windows Management Instrumentation) to monitor when the process `vrserver.exe` starts and stops,
then connects to Logitech G-Hub using a websocket to first get the ID of a PowerPlay mat, then tells G-Hub to disable or
enable charging on that mat.
As there is no documentation for the websocket protocol, it had to be reverse engineered from the G-Hub electron application.