Add True and False tests for bitwise enums

This commit is contained in:
Jack Andersen
2019-04-02 18:28:39 -10:00
parent af4b1a4521
commit c1d3d040bf
9 changed files with 57 additions and 47 deletions

View File

@@ -180,7 +180,7 @@ struct CTestWindowCallback : IWindowCallback {
void charKeyDown(unsigned long charCode, EModifierKey mods, bool isRepeat) {}
void charKeyUp(unsigned long charCode, EModifierKey mods) {}
void specialKeyDown(ESpecialKey key, EModifierKey mods, bool isRepeat) {
if (key == ESpecialKey::Enter && (mods & EModifierKey::Alt) != EModifierKey::None)
if (key == ESpecialKey::Enter && True(mods & EModifierKey::Alt))
m_fullscreenToggleRequested = true;
}
void specialKeyUp(ESpecialKey key, EModifierKey mods) {}