Replace `^= true` in Virtu

fixes 2a5d4b903
This commit is contained in:
YoshiRulz 2024-07-08 10:46:24 +10:00
parent 2a5d4b903c
commit 5d24d1a260
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
2 changed files with 2 additions and 2 deletions

View File

@ -270,7 +270,7 @@ namespace Jellyfish.Virtu
bool caps = keys.HasFlag(Keys.CapsLock);
if (caps && !_currentCapsLockState) // leading edge: toggle CapsLock
{
CapsActive ^= true;
CapsActive = !CapsActive;
}
_currentCapsLockState = caps;
shift ^= CapsActive;

View File

@ -65,7 +65,7 @@
public void ToggleOutput()
{
UpdateCycles();
_isHigh ^= true;
_isHigh = !_isHigh;
}
private void FlushOutputEvent()