Skip to content

keyboard_get_numlock

drewmccluskey edited this page Feb 12, 2019 · 2 revisions

keyboard_get_numlock

Returns true if numlock is on

Syntax:

keyboard_get_numlock()

Returns: bool

Description:

Returns true if numlock is turned on. If numlock is off it will return false.

Example:

if (keyboard_get_numlock())
{
    Position.X += 5;
}

This code will move game object when numlock is turned on.

Back to Keyboard

Clone this wiki locally