Allow all buttons and axes on virtual devices to be specified by either number or an explicit list. #5

Merged
anna merged 8 commits from device-config into main 2025-07-17 20:04:21 +00:00
Showing only changes of commit 10d8c67a68 - Show all commits

View file

@ -68,9 +68,12 @@ func main() {
// initialize the mode variable
mode := config.GetModes()[0]
logger.Logf("Initial mode set to '%s'", mode)
fmt.Println("Joyful Running! Press Ctrl+C to quit.")
fmt.Println("Joyful Running! Press Ctrl+C to quit. Press Enter to reload rules.")
if len(config.GetModes()) > 1 {
logger.Logf("Initial mode set to '%s'", mode)
}
for {
// Get an event (blocks if necessary)
channelEvent := <-eventChannel