natiny.input.get_char_count

Lua
natiny.input.get_char_count() -> count

Returns how many Unicode characters were captured in the current frame text-input buffer.

Returns

Type Description
number Number of available input characters

Example

Lua
local n = natiny.input.get_char_count()

Notes

  • The count describes the text-input buffer captured for the current frame.