keyboard_get_capital()
Jump to navigation
Jump to search
Description
Gets whether the keyboard has caps lock enabled and returns the result.
Parameters
Parameter | Description |
---|---|
none | there are no parameters for this function |
Return Values
boolean: Returns whether caps lock is enabled.
Example Call
// demonstrates checking if caps lock is enabled
if (keyboard_get_capital) {
// caps lock is turned on
} else {
// caps lock is turned off
}