play-with-gamepad

WIP

Usage no npm install needed!

<script type="module">
  import playWithGamepad from 'https://cdn.skypack.dev/play-with-gamepad';
</script>

README

WIP


var gamePadOne = new GamePad({
    gamePadType: 'ps4',
    gamePadPosition: 1
});

gamePadOne.onPress('select', callback)
    .onRelease('select', callback)
    .onPress('option', callback);