mirror of
https://github.com/vale981/VoiDPlugins
synced 2025-03-05 09:11:38 -05:00
Instantly write button state changes
This commit is contained in:
parent
8b30aad1da
commit
3c88557508
2 changed files with 4 additions and 0 deletions
|
@ -36,11 +36,13 @@ namespace VoiDPlugins.OutputMode
|
|||
public void Press(TabletReference tablet, IDeviceReport report)
|
||||
{
|
||||
_instance!.EnableButtonBit(Bindings[Button!]);
|
||||
_instance.Write();
|
||||
}
|
||||
|
||||
public void Release(TabletReference tablet, IDeviceReport report)
|
||||
{
|
||||
_instance!.DisableButtonBit(Bindings[Button!]);
|
||||
_instance.Write();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -58,6 +58,7 @@ namespace VoiDPlugins.OutputMode
|
|||
EraserStateTransition(_instance!, ref eraserState, true);
|
||||
break;
|
||||
}
|
||||
_instance!.Write();
|
||||
}
|
||||
|
||||
public void Release(TabletReference tablet, IDeviceReport report)
|
||||
|
@ -77,6 +78,7 @@ namespace VoiDPlugins.OutputMode
|
|||
EraserStateTransition(_instance!, ref GetEraser(), false);
|
||||
break;
|
||||
}
|
||||
_instance!.Write();
|
||||
}
|
||||
|
||||
public static void EraserStateTransition(VMultiInstance instance, ref Boxed<bool> eraserState, bool isEraser)
|
||||
|
|
Loading…
Add table
Reference in a new issue