The OpenD Programming Language

ModifierState

State of keys on mouse events, especially motion.

Do not trust the actual integer values in this, they are platform-specific. Always use the names.

Values

ValueMeaning
shift4
ctrl8
alt256

not always available on Windows

windows512

ditto

capsLock1024
numLock2048
leftButtonDown1

not available on key events

middleButtonDown16

ditto

rightButtonDown2

ditto

backButtonDown0x20

not available on X

forwardButtonDown0x40

ditto

Meta