Allow all buttons and axes on virtual devices to be specified by either number or an explicit list. #5
1 changed files with 5 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue