IsCapsLockEnabled

From Multi Theft Auto: Wiki
Revision as of 14:52, 11 September 2022 by LopSided (talk | contribs) (Created page with "{{Client function}} ==Syntax== <syntaxhighlight lang="lua"> bool isCapsLockEnabled() </syntaxhighlight> ===Returns=== Returns ''true'' if caps lock is toggled (on), ''false'' otherwise. ==Example== <syntaxhighlight lang="lua">function checkCaps() iprint(isCapsLockEnabled(), getTickCount()) end addCommandHandler("caps", checkCaps)</syntaxhighlight> ==See Also== {{Input functions}}")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Syntax

bool isCapsLockEnabled()

Returns

Returns true if caps lock is toggled (on), false otherwise.

Example

function checkCaps()
    iprint(isCapsLockEnabled(), getTickCount())
end
addCommandHandler("caps", checkCaps)

See Also