Oxbow_ops.Input_rulesSourceapply_rules_to wm device applies wm's input rules matching device.
Effects: mutates WM state
val add :
Oxbow_state.Wm.t ->
Oxbow_core.Input_rule.t ->
(Yojson.Safe.t option, string) resultadd wm rule adds rule to wm's input rules if it is novel, or merges with the existing rule, overwriting existing, non-empty, settings.
Effects: mutates WM state
remove wm indices removes the rules at the given indices from wm's input rule list.
Effects: mutates WM state
val apply_rule :
Oxbow_state.Wm.t ->
Oxbow_core.Input_rule.t ->
(Yojson.Safe.t option, string) resultapply_rule wm rule applies rule to the matching input devices.
Effects: mutates WM state