Input

EsGameControllerStatePoll

size_t EsGameControllerStatePoll(EsGameControllerState *buffer);

Returns number of connected controllers. Buffer must have space for ES_GAME_CONTROLLER_MAX_COUNT.

EsKeyboardGetModifiers

uint8_t EsKeyboardGetModifiers();

Synchronous with respect to message processing.

EsMouseGetPosition

EsPoint EsMouseGetPosition(EsElement *relativeElement = ES_NULL);

Returns the mouse position. If relativeElement is set, the position is relative to that element.

EsMouseSetPosition

EsError EsMouseSetPosition(EsWindow *relativeWindow, int x, int y);

The request will be rejected if the user is not clicking on your window.

EsMouseIsLeftHeld

bool EsMouseIsLeftHeld();

Returns true if the left mouse button is held.

EsMouseIsRightHeld

bool EsMouseIsRightHeld();

Returns true if the right mouse button is held.

EsMouseIsMiddleHeld

bool EsMouseIsMiddleHeld();

Returns true if the middle mouse button is held.