natiny_input_get_char_at
uint32_t natiny_input_get_char_at(int index);
Returns the Unicode code point from the current frame text-input buffer at the specified index.
Parameters
| Name | Type | Description |
|---|---|---|
index |
int |
Zero-based character index |
Returns
| Type | Description |
|---|---|
uint32_t |
Unicode code point, or 0 for an invalid index |
Example
uint32_t cp = natiny_input_get_char_at(0);
if (cp != 0) {
/* handle first typed character */
}