Make modeless operation work more cleanly / remove implicit "main" mode.

This commit is contained in:
Anna Rose Wiggins 2025-07-04 12:57:01 -04:00
parent acba227843
commit 288a07eb73
3 changed files with 7 additions and 4 deletions

View file

@ -17,7 +17,7 @@ import (
// For very large rule-bases this may be helpful for staying performant.
func (parser *ConfigParser) BuildRules(pDevs map[string]*evdev.InputDevice, vDevs map[string]*evdev.InputDevice) []mappingrules.MappingRule {
rules := make([]mappingrules.MappingRule, 0)
modes := parser.getModes()
modes := parser.GetModes()
for _, ruleConfig := range parser.config.Rules {
var newRule mappingrules.MappingRule