Skip to content

Conversation

@ProteanCoding
Copy link

Description

Adds the detection of the initial pointer-lock from the user.

To be used e.g. this way:

world['controls'].onInitialPointerLock(() => console.log('initial pointer lock detected'))

Type of change

  • Component enhancement

How Has This Been Tested?

  • Component functionality tests
  • Integration tests with other Hyperfy components
  • World integration testing
  • Cross-browser testing

Test Configuration:

  • Hyperfy Version: latest
  • Test world setup: simple
  • Browser(s): Firefox
  • Node.js version: 22.11.0

Checklist:

  • My code follows Hyperfy's component architecture
  • I have performed a self-review
  • I have documented the component's usage
  • I have tested the component in multiple scenarios
  • My changes maintain compatibility with existing worlds
  • I have updated the component documentation if needed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant