InputDevice.unicode

Get the "current" unicode character for text input purposes.

Text input is pretty complicated and the InputDevice may (at least in theory) receive more than one unicode character in some frames. These are stored in an internal queue that is popped once per frame. This accesses the popped value.

If there are no characters in the queue, 0 is returned. Enter/backspace key presses are also registered as unicode characters (0x0D/0x0D respectively).

class InputDevice
dchar
unicode
@safe pure nothrow const
(
)

Meta