Skip to content

Gamepad support no longer working on tvOS simulator #682

@gtebbutt

Description

@gtebbutt

I understand if this isn't considered a major/breaking issue as per #669 - even if not, I figured it's worth making a note of.

Input on the tvOS simulator (I haven't yet been able to compare on real hardware) has a few issues: using touchMove, the input is registered but the coordinate system seems fairly odd. The clientX (or pageX, both return the same) and clientY numbers both seem to return anything from around -900px to +2100px, on a 1920x1080 canvas. I haven't yet been able to cleanly figure out the limits or origin of the axes in order to make use of the events.

Running the gamepad example code from https://impactjs.com/ejecta/gamepad causes a runtime error which appears to stem from the gamepad.id call. Removing that allows the code to run, however the only gamepad (the simulator remote) registers as extendedGamepad rather than the expected microGamepad and doesn't register any inputs at all.

Other than that, the library still seems to be doing a great job, even on tvOS 14 - so any advice on the input handling would be very much appreciated!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions