HGE::Input_GetChar

Returns the last pressed character since previous call to frame function.

int Input_GetChar();

Return value

Returns the character code. If no key was pressed or there's no corresponding character, returns 0.

Remarks

Input_GetChar translates the pressed key code to character considering the current keyboard states and input locale.

The key states are updated outside user's frame function. So don't use Input_GetChar in a loop to wait a key to be pressed, this will result in system hang up.

Requirements

Header: hge.h
Import library: hge.lib

See also

Input_GetKeyName, Input_GetKeyState, Input_GetKey, Key codes