keyboard_set_numlock

Set the status of the keypad numberlock.

Syntax:

GML Code Example

keyboard_set_numlock(value);


Argument Description
value Set this to true for "on" and false for "off"


Returns: N/A


Description

You can use this function to switch the keypad numberlock on or off (set to true for on, and false for off).

NOTE: This functionality is only available in the Windows exe builds and will not function on any other device.


Example:

GML Code Example

if keyboard_get_numlock()
    {
    keyboard_set_numlock(0);
    }
 else
    {
    keyboard_set_numlock(1);
    }
 

The above example code will get the state of the numberlock key and if it is on (true) it will set it to off (false) and vice-versa.


Next: io_clear



No Examples Submitted

Does this page need better examples? Be the first to Submit

No Edits Suggested

Is this page unclear or not descriptive enough? Suggest an edit to the page and with enough upvotes your changes will be made.

No Questions Have Been Ask

Do you have a question about this page? Ask it Here