Skip to content

Inconsitent use of HI inside GamepadPlugin #19

@DavidVollmers

Description

@DavidVollmers

Hello,

this.HI.trigger(HI.scope + event, gp.buttons[j].value, gamepads[i]);

this.HI.trigger(HI.scope + event, gp.axes[j], gamepads[i]);

HI is used instead of this.HI which results in an error when managing the HI instance by yourself and when no global HI is defined...

A hacky hotfix for this issue can be:

eval( 'window.HI = { scope: "" }' )

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