IsCapsLockEnabled: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
m (Note: version may change)
(Remove obsolete Requirements section)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
__NOTOC__
{{Client function}}
{{Client function}}


Line 14: Line 15:
end
end
addCommandHandler("caps", checkCaps)</syntaxhighlight>
addCommandHandler("caps", checkCaps)</syntaxhighlight>
==Requirements==
{{Requirements|n/a|1.5.9-9.21266|}}


==See Also==
==See Also==
{{Input functions}}
{{Input functions}}

Latest revision as of 17:32, 7 November 2024

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