Skip to content

[MousePointerLock] I have to click on the game for the mouse to lock/ESC key unlocks mouse no matter what #1970

@Peeblo-r

Description

@Peeblo-r

Is there an existing issue for this?

Enter the name of the extension

MousePointerLock

Describe the bug of the extension

When I request for the mouse to be locked, no matter what, I have to click on the screen to lock the pointer, it doesn't do it right away despite me programming it to be that way.
When I press ESC, the camera stops in place and my mouse is freed, despite not programming anything of the sorts.

I'm making a First Person Shooter for Windows, not a web application in which I'm restricted to "ask" the user for consent to do anything, this shouldn't be a default thing that's implemented without me wanting it and I'd like for it to be changed so it actually does what I ask it to do, I plan to implement my own pause system and don't want this.

Steps to reproduce

  1. Use the extension.
  2. Lock the mouse at the start of the scene.
  3. See that it's not locked at the start of the scene, but rather after you click on the screen.
  4. Press ESC.
  5. The camera stops in place but everything else still works.

GDevelop platform

Desktop

GDevelop version

5.6.250

Platform info

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    ⚠ Issue with an extensionAn issue with an extension that is already on the extension store

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions