Skip to content

raylib.SetMouseOffset

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Set mouse offset NOTE: Useful when rendering to different size targets

Parameters

Parameter Default Value Note
offsetX
offsetY

Return value

None.

Notes

Example

// Offset mouse coordinates when rendering to a sub-region
raylib.SetMouseOffset 100, 50

Clone this wiki locally