GamepadService:EnableGamepadCursor() errors instead of settings the cursor to default position

image

Expected behavior

Unless the documentation is incorrect, setting the cursor to default position

It appears that you need to explicitly specify nil as the argument in order for this function to succeed; leaving the argument blank (void) results in an error. Appears to be similar to this topic where void and nil have different behaviours; in-which in that case it was determined to be intentional behaviour. This case seems different though and I’d honestly be quite confused if this were to be intended given that needing to explicitly state nil is quite odd.

2 Likes

Hi

I assume you’re trying to call GamepadService:EnableGamepadCursor() with no parameter. In order to set the cursor to the default position, you must pass nil as a parameter, GamepadService:EnableGamepadCursor(nil) like so. I’ll update the docs to be explicit about this.

Thanks

1 Like