Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use internal gamepad library #90

Merged
merged 2 commits into from Jan 12, 2019
Merged

use internal gamepad library #90

merged 2 commits into from Jan 12, 2019

Conversation

philschatz
Copy link
Owner

@philschatz philschatz commented Jan 12, 2019

This adds an internal gamepad library similar to contro but provides the following features:

  • uses the standard layout to refer to buttons and sticks
  • supports gamepads that do not use the standard layout
    • some browsers like Firefox do not provide a standard mapping
    • uses mapping files to support non-standard gamepads
  • allows checking if a specific button is available on the gamepad
  • allows composing buttons, sticks, and even gamepads to make it easier to write games
  • allows scoping the key presses so they only apply when the game is in focus (being played)
  • allows disposing of keyboard buttons when they are no longer needed

@codecov
Copy link

codecov bot commented Jan 12, 2019

Codecov Report

Merging #90 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #90   +/-   ##
=======================================
  Coverage   46.71%   46.71%           
=======================================
  Files         144      144           
  Lines       12012    12012           
  Branches      854      854           
=======================================
  Hits         5612     5612           
  Misses       6228     6228           
  Partials      172      172

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bd41b80...50badf3. Read the comment docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant