Function TCOD_context_set_mouse_transform¶
Defined in File context.h
Function Documentation¶
-
TCOD_Error TCOD_context_set_mouse_transform(struct TCOD_Context *context, const TCOD_MouseTransform *transform)¶
Manually set the pixel-to-tile mouse position transformation.
New in version 1.24.
- Parameters
context – A non-NULL TCOD_Context object.
transform – The transform to assign to the context.
- Returns
A negative error value is returned on errors, otherwise returns TCOD_E_OK.