HumanInput icon indicating copy to clipboard operation
HumanInput copied to clipboard

Inconsitent use of HI inside GamepadPlugin

Open DavidVollmers opened this issue 6 years ago • 0 comments

Hello,

https://github.com/liftoff/HumanInput/blob/b96967b41afb4c7293848be19a4061024132bdbc/src/gamepad.js#L241

https://github.com/liftoff/HumanInput/blob/b96967b41afb4c7293848be19a4061024132bdbc/src/gamepad.js#L247

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: "" }' )

DavidVollmers avatar Jul 31 '18 19:07 DavidVollmers