Device.getScrollLockState

bool getScrollLockState() nothrow

Retrieves whether the Scroll Lock modifier of the keyboard is locked.

This is only relevant for keyboard devices.

Returns

true if Scroll Lock is on for device