diff --git a/README.md b/README.md index 66a3d61..39c4f33 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,9 @@ ![](http://wes.io/sQyC/content.gif) -A simple webpage that responds to the key pressed and returns the JavaScript 'on-key pressed' keycode. +A simple webpage that : +- responds to the key pressed and returns the JavaScript 'on-key pressed' keycode. +- responds to gamepad events and returns the JavaScript button index and joystick positions. ## Help Out :ok_hand::ok_hand::ok_hand: diff --git a/index.html b/index.html index d64b9a3..16d93ef 100644 --- a/index.html +++ b/index.html @@ -32,8 +32,11 @@

+

Press any key to get the JavaScript event keycode

-
+

Plug a gamepad to get the JavaScript events

+
event.key
@@ -66,6 +69,32 @@
+
+
+
gamepad.id
+
+
xinput
+
+
+
+
gamepad.mapping
+
+
standard
+
+
+
+
gamepad.buttons
+
+
+
+
+
+
gamepad.axes
+
+
+
+
+
@@ -75,18 +104,27 @@
- Made with love by - Wes Bos — fork or suggest edits on - GitHub — +