Skip to content

Commit

Permalink
Replace ^= true in Virtu
Browse files Browse the repository at this point in the history
fixes 2a5d4b9
  • Loading branch information
YoshiRulz committed Jul 8, 2024
1 parent 2a5d4b9 commit 5d24d1a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ExternalCoreProjects/Virtu/Keyboard.cs
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ public void SetKeys(IEnumerable<string> keynames)
bool caps = keys.HasFlag(Keys.CapsLock);
if (caps && !_currentCapsLockState) // leading edge: toggle CapsLock
{
CapsActive ^= true;
CapsActive = !CapsActive;
}
_currentCapsLockState = caps;
shift ^= CapsActive;
Expand Down
2 changes: 1 addition & 1 deletion ExternalCoreProjects/Virtu/Speaker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public void GetSamples(out short[] samples, out int nSamp)
public void ToggleOutput()
{
UpdateCycles();
_isHigh ^= true;
_isHigh = !_isHigh;
}

private void FlushOutputEvent()
Expand Down

0 comments on commit 5d24d1a

Please sign in to comment.