Brand new Gamepad API support fully implemented (thanks to Karl Macklin), with examples to show use.

This commit is contained in:
photonstorm
2013-12-31 01:45:30 +00:00
parent 29d7cc36a0
commit 3b87ce9fc9
7 changed files with 562 additions and 456 deletions
+34 -26
View File
@@ -147,6 +147,32 @@
"title": "vertical collision"
}
],
"debug": [
{
"file": "debug+camera.js",
"title": "debug camera"
},
{
"file": "debug+display.js",
"title": "debug display"
},
{
"file": "debug+draw.js",
"title": "debug draw"
},
{
"file": "debug+input.js",
"title": "debug input"
},
{
"file": "debug+physics.js",
"title": "debug physics"
},
{
"file": "debug+sprite.js",
"title": "debug sprite"
}
],
"display": [
{
"file": "bitmapdata+wobble.js",
@@ -181,28 +207,6 @@
"title": "render texture trail"
}
],
"debug":[
{
"file": "debug+sprite.js",
"title": "Sprite data"
},
{
"file": "debug+display.js",
"title": "Sprite display"
},
{
"file": "debug+input.js",
"title": "Input"
},
{
"file": "debug+camera.js",
"title": "Camera"
},
{
"file": "debug+draw.js",
"title": "Draw"
}
],
"filters": [
{
"file": "blur.js",
@@ -282,10 +286,6 @@
"file": "add+a+sprite+to+group.js",
"title": "add a sprite to group"
},
{
"file": "bring+a+child+to+top.js",
"title": "bring a child to top"
},
{
"file": "bring+a+group+to+top.js",
"title": "bring a group to top"
@@ -364,6 +364,10 @@
}
],
"input": [
{
"file": "bring+a+child+to+top.js",
"title": "bring a child to top"
},
{
"file": "cursor+key+movement.js",
"title": "cursor key movement"
@@ -798,6 +802,10 @@
"file": "tween+loop+event.js",
"title": "tween loop event"
},
{
"file": "tween+relative.js",
"title": "tween relative"
},
{
"file": "tween+several+properties.js",
"title": "tween several properties"
+3
View File
@@ -81,6 +81,9 @@
<script src="../src/input/MSPointer.js"></script>
<script src="../src/input/Pointer.js"></script>
<script src="../src/input/Touch.js"></script>
<script src="../src/input/Gamepad.js"></script>
<script src="../src/input/SinglePad.js"></script>
<script src="../src/input/GamepadButton.js"></script>
<script src="../src/input/InputHandler.js"></script>
<script src="../src/gameobjects/Events.js"></script>