Skip to content

raylib.SetMouseScale

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Set mouse scaling NOTE: 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