ScriptReference/Event-modifiers #189
Replies: 1 comment
-
|
Note that this will not return if (e.modifiers == EventModifiers.Shift)Which would fail if the player accidentally has Caps Lock on, instead do something like: EventModifiers modfiers = e.modifiers;
modifiers &= (~EventModifiers.CapsLock);
modifiers &= (~EventModifiers.Numeric);
if (modifiers == EventModifiers.Shift) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
ScriptReference/Event-modifiers
https://docs.unity3d.com/ScriptReference/Event-modifiers.html
Beta Was this translation helpful? Give feedback.
All reactions