infusion / infusion/node-gamecontroller

this._hid.disconnect is not a function

Open
#2 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
56
Forks
22
PR merge metrics
No merged PRs in 30d

Description

When using the xplorer guitar, calling .close() will generate an error. Looking at the _hid property I can see that there is no such function.

https://github.com/infusion/node-gamecontroller/blob/deebd1c58ce81e900814e63d18569f06daf102f7/gamecontroller.js#L94

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at gamecontroller.js line 94 and trace how the xplorer guitar initializes _hid and how close() invokes it. Reproduce the xplorer close path and verify that closing no longer raises “this._hid.disconnect is not a function.”

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
backend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.