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();