Skip to content

raylib.SetMouseScale

JoeStrout edited this page Nov 16, 2026 · 3 revisions

Set mouse scaling (useful when rendering to different size targets)

Parameters

Parameter Default Value Note
scaleX
scaleY

Return value

None.

Notes

Example

// Scale mouse coordinates to match a render texture half the window size
raylib.SetMouseScale 2.0, 2.0

Clone this wiki locally