HPL3/Community/Scripting/Classes/ekeymodifier

From Frictional Wiki
< HPL3‎ | Community/Scripting/Classes
Revision as of 11:12, 30 July 2020 by Maintenance script (talk | contribs) (Upload classes to sub)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

eKeyModifier

Values

Enum Name Integer Value Description
eKeyModifier_None 0 No modifier keys are pressed.
eKeyModifier_Ctrl 1 The control key is pressed.
eKeyModifier_Shift 2 The shift key is pressed.
eKeyModifier_Alt 4 The alt key is pressed.
eKeyModifier_LastEnum 5

Remarks

The eKeyModifier enum type is an implementation of what is known as a [[wp>Bit_Field|Bit Field]]. Multiple enum values can be combined into a single integer value containing all the combined enum flags. In this case, a single integer can represent that multiple modifier keys, for example "Control" and "Alt", are being pressed simultaneously. See eFlagBit for an explanation on how to process bit fields.