Function TCOD_context_convert_event_coordinates¶
Defined in File context.h
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.