ETHInput /Core objects

Games may use ETHInput methods to perform keyboard, mouse or joystick input tests. This is a reference object and must be used as a @handle.

A handle to a valid ETHInput object can be retrieved at any time with the GetInputHandle function.

Examples:

// if the user presses ESC, then quit
ETHInput @input = GetInputHandle();
if (input.KeyDown(K_ESC))
{
    Exit();
}
// gets the mouse cursor position
ETHInput @input = GetInputHandle();
vector2 cursorPos = input.GetCursorPos();
Notice Touch events on desktop environments are automatically emulated by mouse click events.
Warning Joystick support is not yet implemented on Android and iOS.
Warning Mouse and keyboard events are not yet supported on Android and iOS devices.