niklashigi / contro

:video_game: Game controls done right.
https://npm.im/contro
MIT License
53 stars 7 forks source link

Make `Gamepad.stick` consistent with the docs #7

Closed niklashigi closed 6 years ago

niklashigi commented 6 years ago

This fixes the documentation inconsistency @quinton-ashley pointed out in #6. Gamepad.stick now returns a proper Control that has a label and can be query-ed.

Closes #6

codecov[bot] commented 6 years ago

Codecov Report

Merging #7 into master will increase coverage by <.01%. The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master      #7      +/-   ##
=========================================
+ Coverage   99.49%   99.5%   +<.01%     
=========================================
  Files          10      10              
  Lines         199     202       +3     
  Branches       37      37              
=========================================
+ Hits          198     201       +3     
  Misses          1       1
Impacted Files Coverage Δ
src/inputs/gamepad.ts 100% <100%> (ø) :arrow_up:

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 fd07ebc...584d9ab. Read the comment docs.