love.keyboard.isModifierActive

Available since LÖVE 12.0
This function is not supported in earlier versions.

Checks whether a modifier key is active.

Example of modifier keys are caps lock, num lock, and scroll lock while also have press/release state, additionally also have active state.

Function

Synopsis

active = love.keyboard.isModifierActive( modifier )

Arguments

ModifierKey modifier
Modifier key to check.

Returns

boolean active
Wheter the specified modifier key is active or not.

See Also

Other Languages