Skip to content

raylib.SetMousePosition

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Set mouse position XY

Parameters

Parameter Default Value Note
x
y

Return value

None.

Notes

Example

// Center the mouse on a 800x600 window
raylib.SetMousePosition 400, 300

Clone this wiki locally