Function TCOD_context_convert_event_coordinates

Function Documentation

TCOD_Error TCOD_context_convert_event_coordinates(struct TCOD_Context *context, union SDL_Event *event)

Convert the pixel coordinates of SDL mouse events to the tile coordinates of the current context.

New in version 1.19.