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
shift1
capsLock2
ctrl4
alt8

Not always available on Windows

windows64

ditto

numLock16
leftButtonDown256

these aren't available on Windows for key events, so don't use them for that unless your app is X only.

middleButtonDown512

ditto

rightButtonDown1024

ditto

Meta