comp • gb.sdl2 • window • .text

Event Window.Text (gb.sdl2)

Event Text ( )

This event is raised when some text is entered.

Use the Key class to get information about the text.

You can't use the KeyPress event to deals with entered text, because it only manages single keystrokes.

Text input relies on keyboard layouts, key states and input methods, that are managed by the Text event.