C
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
C
uint32_t cp = natiny_input_get_char_at(0);
if (cp != 0) {
/* handle first typed character */
}
Notes
- The index is zero-based. Negative and out-of-range indexes return
0.
- Values are Unicode code points produced by text input, not physical key codes.