We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

Gamepad not connected until first input

Home Forums Puzzles Gamepad not connected until first input

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #19995
    GLiFTeK
    Customer

    Hi,
    I’m monitoring my gamepad connection with the “detect gamepad device”

    and printing to console it’s status with the “get gamepad property”

    i’m noticing that even though the gamepad is on, that the property puzzle prints that it is false…
    UNTIL the first input.
    this may explain why the first movement i make (since app start) with the gamepad is delayed/jerky.

    any way to “simulate” a gamepad input in order to have it know it’s “on” (true)
    to circumvent this bug?

    i already have my gamepad procedures not run unless the gamepad “is_connected variable” i’ve made is “true”, that gets triggered when it gets connected/disconnected.

    thanks

    #20016

    Hi,

    this is not a bug, but rather a browser security feature :) to prevent device fingerprinting etc without an explicit user consent. You might want to add some “Please press any key…” message upon you application startup to inform the users that they should press something to start playing with your app.

    Soft8Soft Tech Chief
    X | FB | LinkedIn

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.