You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CAGE_ASSERT(none(config.devices & KeybindDevicesFlags::WheelRoll) || none(config.devices & KeybindDevicesFlags::WheelScroll)); // these two flags are mutually exclusive
295
-
CAGE_ASSERT(none(config.devices & KeybindDevicesFlags::Modifiers) || config.devices == KeybindDevicesFlags::Modifiers); // modifiers is exclusive with all other flags
296
290
CAGE_ASSERT(any(config.modes));
297
291
if (config.guiTextId == 0)
298
292
config.guiTextId = HashString(config.id);
@@ -438,7 +432,7 @@ namespace cage
438
432
}
439
433
if (in.has<input::KeyRelease>() || in.has<input::KeyRepeat>())
440
434
returnfalse;
441
-
if (in.has<input::KeyPress>() && config.devices!= KeybindDevicesFlags::Modifiers)
435
+
if (in.has<input::KeyPress>() && none(config.devices& KeybindDevicesFlags::Modifiers))
442
436
{
443
437
const input::KeyPress k = in.get<input::KeyPress>();
0 commit comments