{"_id":"@cfrezier/reveal-gamepad-controller-plugin","_rev":"6-d80b8d6707fcf230d00d7a64c3c22e2b","name":"@cfrezier/reveal-gamepad-controller-plugin","dist-tags":{"latest":"1.1.5"},"versions":{"1.0.0":{"name":"@cfrezier/reveal-gamepad-controller-plugin","version":"1.0.0","description":"Reveal.js plugin allowing to control slides using any gamepad","author":{"name":"Christophe Frézier","email":"frezier@gmail.com"},"license":"MIT","main":"dist/index.js","homepage":"https://github.com/cfrezier/reveal-gamepad-controller-plugin#readme","type":"module","bugs":{"url":"https://github.com/cfrezier/reveal-gamepad-controller-plugin/issues"},"repository":{"type":"git","url":"git+https://github.com/cfrezier/reveal-gamepad-controller-plugin.git"},"publishConfig":{"registry":"https://registry.npmjs.org"},"keywords":["reveal.js","plugin"],"scripts":{"build":"tsc -b ./tsconfig.json","clean":"rm -rf ./build"},"dependencies":{"reveal.js":"^4.6.1","typescript":"^5.2.2"},"exports":{"./*":{"esm":"./dist/index.js","default":"./dist/index.js"}},"devDependencies":{"@types/reveal.js":"^4.4.5"},"_id":"@cfrezier/reveal-gamepad-controller-plugin@1.0.0","gitHead":"09daf31d8bf3d9071f7c0abfc6cf90c7e758cadd","_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-3gMibY0G2lrLldpEtDD27abbKdEGGz4prXccM+VvlV8zIk+/g6GcVzcECkfZya8ehqgeyddWib0KlKVqOBKgjQ==","shasum":"3ec16d47dd226764ffe59a375876d3f5b68e91df","tarball":"https://registry.npmjs.org/@cfrezier/reveal-gamepad-controller-plugin/-/reveal-gamepad-controller-plugin-1.0.0.tgz","fileCount":10,"unpackedSize":22096,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEEY4VvkiIrX6bdcYOGh6VdPRK1aee3OeP13Vuwqw1pKAiEAmnDfVAHJOhoic626IOlGQ5U0LH4/Mm9LbYc450KFZmY="}]},"_npmUser":{"name":"cfrezier","email":"frezier@gmail.com"},"directories":{},"maintainers":[{"name":"cfrezier","email":"frezier@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/reveal-gamepad-controller-plugin_1.0.0_1697884215145_0.8254560122239525"},"_hasShrinkwrap":false},"1.1.0":{"name":"@cfrezier/reveal-gamepad-controller-plugin","version":"1.1.0","description":"Reveal.js plugin allowing to control slides using any gamepad","author":{"name":"Christophe Frézier","email":"frezier@gmail.com"},"license":"MIT","main":"dist/index.js","homepage":"https://github.com/cfrezier/reveal-gamepad-controller-plugin#readme","type":"module","bugs":{"url":"https://github.com/cfrezier/reveal-gamepad-controller-plugin/issues"},"repository":{"type":"git","url":"git+https://github.com/cfrezier/reveal-gamepad-controller-plugin.git"},"publishConfig":{"registry":"https://registry.npmjs.org"},"keywords":["reveal.js","plugin"],"scripts":{"build":"tsc -b ./tsconfig.json","clean":"rm -rf ./build"},"dependencies":{"reveal.js":"^4.6.1","typescript":"^5.2.2"},"exports":{"./*":{"esm":"./dist/index.js","default":"./dist/index.js"}},"devDependencies":{"@types/reveal.js":"^4.4.5"},"_id":"@cfrezier/reveal-gamepad-controller-plugin@1.1.0","gitHead":"d8c4f7419717aba5035b9ad2ce7fbe5cd06ed4ec","_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-MwbxCBMOz8++7IOG4rjejisU1OXK1ma/2exIxrkbK/lf5wkwMLCmjxJHFjvfor7DP58JdAVTxG4BrXwaNflaNg==","shasum":"6ce06c10387fa06fd0aa125beb9647ae33d250e5","tarball":"https://registry.npmjs.org/@cfrezier/reveal-gamepad-controller-plugin/-/reveal-gamepad-controller-plugin-1.1.0.tgz","fileCount":10,"unpackedSize":28600,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD7fXe1vdYcVz1iV09HbeOyAPTc+wZFuDLX5qelC0u4kQIhAJkvefdUshyvmCvPf0PzWNR1ac2zSs5CUjPzyoNCnAXp"}]},"_npmUser":{"name":"cfrezier","email":"frezier@gmail.com"},"directories":{},"maintainers":[{"name":"cfrezier","email":"frezier@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/reveal-gamepad-controller-plugin_1.1.0_1697900910658_0.6073930215768861"},"_hasShrinkwrap":false},"1.1.1":{"name":"@cfrezier/reveal-gamepad-controller-plugin","version":"1.1.1","description":"Reveal.js plugin allowing to control slides using any gamepad","author":{"name":"Christophe Frézier","email":"frezier@gmail.com"},"license":"MIT","main":"dist/index.js","homepage":"https://github.com/cfrezier/reveal-gamepad-controller-plugin#readme","type":"module","bugs":{"url":"https://github.com/cfrezier/reveal-gamepad-controller-plugin/issues"},"repository":{"type":"git","url":"git+https://github.com/cfrezier/reveal-gamepad-controller-plugin.git"},"publishConfig":{"registry":"https://registry.npmjs.org"},"keywords":["reveal.js","plugin"],"scripts":{"build":"tsc -b ./tsconfig.json","clean":"rm -rf ./build"},"dependencies":{"reveal.js":"^4.6.1","typescript":"^5.2.2"},"exports":{"./*":{"esm":"./dist/index.js","default":"./dist/index.js"}},"devDependencies":{"@types/reveal.js":"^4.4.5"},"_id":"@cfrezier/reveal-gamepad-controller-plugin@1.1.1","gitHead":"12f01e780e7a8cdc6d7434f1fbbf11ef73893f49","_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-HmMu9XR28R1HD7404j1nMAGBErYhmWnG07KOvp1VQb4+Cn3fI4nJC31uQX858Yr/eAj3qnEvWrxUvjAEutCOjw==","shasum":"32005b52783640f988599d9a25ce9edd907e27d3","tarball":"https://registry.npmjs.org/@cfrezier/reveal-gamepad-controller-plugin/-/reveal-gamepad-controller-plugin-1.1.1.tgz","fileCount":10,"unpackedSize":28895,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD3vJ5S/zZ0WSw96KjPeSTux7scs+v2iuvmUScidY0ragIhAOMSIT4KN2nqdKhywTMbZ9f79Zb97iu3a3rS1ntOAuiI"}]},"_npmUser":{"name":"cfrezier","email":"frezier@gmail.com"},"directories":{},"maintainers":[{"name":"cfrezier","email":"frezier@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/reveal-gamepad-controller-plugin_1.1.1_1697901206396_0.41737296349934305"},"_hasShrinkwrap":false},"1.1.2":{"name":"@cfrezier/reveal-gamepad-controller-plugin","version":"1.1.2","description":"Reveal.js plugin allowing to control slides using any gamepad","author":{"name":"Christophe Frézier","email":"frezier@gmail.com"},"license":"MIT","main":"dist/index.js","homepage":"https://github.com/cfrezier/reveal-gamepad-controller-plugin#readme","type":"module","bugs":{"url":"https://github.com/cfrezier/reveal-gamepad-controller-plugin/issues"},"repository":{"type":"git","url":"git+https://github.com/cfrezier/reveal-gamepad-controller-plugin.git"},"publishConfig":{"registry":"https://registry.npmjs.org"},"keywords":["reveal.js","plugin"],"scripts":{"build":"tsc -b ./tsconfig.json","clean":"rm -rf ./build"},"dependencies":{"reveal.js":"^4.6.1","typescript":"^5.2.2"},"exports":{"./*":{"esm":"./dist/index.js","default":"./dist/index.js"}},"devDependencies":{"@types/reveal.js":"^4.4.5"},"_id":"@cfrezier/reveal-gamepad-controller-plugin@1.1.2","gitHead":"3a931f7216ff88e83a6565d6b2a74dddfdf0d329","_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-bG0xrl5yYCrsHYij6rNZc7v4HJ4DxcktPBtAMTvwoZabGSZ3KuYQ/x6Aps1KW8R8S5KzK7RaL1ai7SVpPpfRfw==","shasum":"46a6c75336b0a2c0712d88fed56a8a6934f6a865","tarball":"https://registry.npmjs.org/@cfrezier/reveal-gamepad-controller-plugin/-/reveal-gamepad-controller-plugin-1.1.2.tgz","fileCount":10,"unpackedSize":29441,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA9tQhSdNQqe4CdBW9SfryWbpHdsX6ZReywfpl//uOeSAiEAx+NNbnlE7fbY7Fv6Kn1C7ikbrW4QXFHM6LVfzIAd/Ys="}]},"_npmUser":{"name":"cfrezier","email":"frezier@gmail.com"},"directories":{},"maintainers":[{"name":"cfrezier","email":"frezier@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/reveal-gamepad-controller-plugin_1.1.2_1697901547737_0.6361734007855968"},"_hasShrinkwrap":false},"1.1.3":{"name":"@cfrezier/reveal-gamepad-controller-plugin","version":"1.1.3","description":"Reveal.js plugin allowing to control slides using any gamepad","author":{"name":"Christophe Frézier","email":"frezier@gmail.com"},"license":"MIT","main":"dist/index.js","homepage":"https://github.com/cfrezier/reveal-gamepad-controller-plugin#readme","type":"module","bugs":{"url":"https://github.com/cfrezier/reveal-gamepad-controller-plugin/issues"},"repository":{"type":"git","url":"git+https://github.com/cfrezier/reveal-gamepad-controller-plugin.git"},"publishConfig":{"registry":"https://registry.npmjs.org"},"keywords":["reveal.js","plugin"],"scripts":{"build":"tsc -b ./tsconfig.json","clean":"rm -rf ./build"},"dependencies":{"reveal.js":"^4.6.1","typescript":"^5.2.2"},"exports":{"./*":{"esm":"./dist/index.js","default":"./dist/index.js"}},"devDependencies":{"@types/reveal.js":"^4.4.5"},"_id":"@cfrezier/reveal-gamepad-controller-plugin@1.1.3","gitHead":"7d8f485f8ed0da529822a8b021b2188bcc271ea1","_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-JLh8tRdya33z99v0Ioa0CXa7ZqUD5nYnWq7ykfr/E7fawBpGYTCdygi6oxSEXAu9o05MeQ8izeO+bvJYEjEiqQ==","shasum":"fa84da0d81ab0c930bc9b95aaa88ff54fb47bbdd","tarball":"https://registry.npmjs.org/@cfrezier/reveal-gamepad-controller-plugin/-/reveal-gamepad-controller-plugin-1.1.3.tgz","fileCount":10,"unpackedSize":30048,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBdlWQKCQ7Q39wRDoyfO7rKv8J2c8ZkNyocTD1GijsOKAiEA1+DYp2cxRdI+o+toODp3Gd7a+tl+vc9GWYeUWTQ4gF4="}]},"_npmUser":{"name":"cfrezier","email":"frezier@gmail.com"},"directories":{},"maintainers":[{"name":"cfrezier","email":"frezier@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/reveal-gamepad-controller-plugin_1.1.3_1698421008798_0.747403383010411"},"_hasShrinkwrap":false},"1.1.4":{"name":"@cfrezier/reveal-gamepad-controller-plugin","version":"1.1.4","description":"Reveal.js plugin allowing to control slides using any gamepad","author":{"name":"Christophe Frézier","email":"frezier@gmail.com"},"license":"MIT","main":"dist/index.js","homepage":"https://github.com/cfrezier/reveal-gamepad-controller-plugin#readme","type":"module","bugs":{"url":"https://github.com/cfrezier/reveal-gamepad-controller-plugin/issues"},"repository":{"type":"git","url":"git+https://github.com/cfrezier/reveal-gamepad-controller-plugin.git"},"publishConfig":{"registry":"https://registry.npmjs.org"},"keywords":["reveal.js","plugin"],"scripts":{"build":"tsc -b ./tsconfig.json","clean":"rm -rf ./build"},"dependencies":{"reveal.js":"^4.6.1","typescript":"^5.2.2"},"exports":{"./*":{"esm":"./dist/index.js","default":"./dist/index.js"}},"devDependencies":{"@types/reveal.js":"^4.4.5"},"_id":"@cfrezier/reveal-gamepad-controller-plugin@1.1.4","gitHead":"ebffae2745e82c6c4e871e7d98e8c824f8a3e6c5","_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-tsLcMvAs5Xu8rCCnlxjzvukftzKVJgd+w3qU4bs83T1rBuk0qSyOi0znCBPDhRVnPbtpEh8BV4ihiHuEaHx2Fw==","shasum":"7e0d42323c444d112d3c5fd63bf23de6e6f1bc67","tarball":"https://registry.npmjs.org/@cfrezier/reveal-gamepad-controller-plugin/-/reveal-gamepad-controller-plugin-1.1.4.tgz","fileCount":10,"unpackedSize":30048,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCuPtWgCBWAZSBmSi0CNCWuubiUlh6M0nk2AUtnJsteOgIgFOS4aCF63Wbl0dzdqmQ8rS/iKW1k9aSKEyLQ/MFdZ5o="}]},"_npmUser":{"name":"cfrezier","email":"frezier@gmail.com"},"directories":{},"maintainers":[{"name":"cfrezier","email":"frezier@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/reveal-gamepad-controller-plugin_1.1.4_1698421126439_0.020900115100367156"},"_hasShrinkwrap":false},"1.1.5":{"name":"@cfrezier/reveal-gamepad-controller-plugin","version":"1.1.5","description":"Reveal.js plugin allowing to control slides using any gamepad","author":{"name":"Christophe Frézier","email":"frezier@gmail.com"},"license":"MIT","main":"dist/index.js","homepage":"https://github.com/cfrezier/reveal-gamepad-controller-plugin#readme","type":"module","bugs":{"url":"https://github.com/cfrezier/reveal-gamepad-controller-plugin/issues"},"repository":{"type":"git","url":"git+https://github.com/cfrezier/reveal-gamepad-controller-plugin.git"},"publishConfig":{"registry":"https://registry.npmjs.org"},"keywords":["reveal.js","plugin"],"scripts":{"build":"tsc -b ./tsconfig.json","clean":"rm -rf ./build","deploy":"npm run build; npm publish --access public"},"dependencies":{"reveal.js":"^4.6.1","typescript":"^5.2.2"},"exports":{"./*":{"esm":"./dist/index.js","default":"./dist/index.js"}},"devDependencies":{"@types/reveal.js":"^4.4.5"},"_id":"@cfrezier/reveal-gamepad-controller-plugin@1.1.5","gitHead":"994d9222f78d5bc1cc37a3876097190d06261e08","_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-7xumnDqtNisvA/3Wp+Ac33d4CzLfDlkml4bMOcdKbeMNBd9OJIvwxAdDW+bRpGYPTb6GIBBvxSlLOdOXC16rbA==","shasum":"9d3af67758dba19aada34d464a4c303c8799102e","tarball":"https://registry.npmjs.org/@cfrezier/reveal-gamepad-controller-plugin/-/reveal-gamepad-controller-plugin-1.1.5.tgz","fileCount":10,"unpackedSize":30207,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCt8SxAKXkCXKmHTwYkrM/QYtMAg4PiIfToCSdCsRbcbgIgHGCCr4/C2TNjsvZCuNKJlQFVsHnzcYh2iIxys86v4tA="}]},"_npmUser":{"name":"cfrezier","email":"frezier@gmail.com"},"directories":{},"maintainers":[{"name":"cfrezier","email":"frezier@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/reveal-gamepad-controller-plugin_1.1.5_1698918084478_0.44081503662020016"},"_hasShrinkwrap":false}},"time":{"created":"2023-10-21T10:30:14.966Z","1.0.0":"2023-10-21T10:30:15.298Z","modified":"2023-11-02T09:41:24.892Z","1.1.0":"2023-10-21T15:08:30.904Z","1.1.1":"2023-10-21T15:13:26.566Z","1.1.2":"2023-10-21T15:19:07.930Z","1.1.3":"2023-10-27T15:36:49.000Z","1.1.4":"2023-10-27T15:38:46.609Z","1.1.5":"2023-11-02T09:41:24.722Z"},"maintainers":[{"name":"cfrezier","email":"frezier@gmail.com"}],"description":"Reveal.js plugin allowing to control slides using any gamepad","homepage":"https://github.com/cfrezier/reveal-gamepad-controller-plugin#readme","keywords":["reveal.js","plugin"],"repository":{"type":"git","url":"git+https://github.com/cfrezier/reveal-gamepad-controller-plugin.git"},"author":{"name":"Christophe Frézier","email":"frezier@gmail.com"},"bugs":{"url":"https://github.com/cfrezier/reveal-gamepad-controller-plugin/issues"},"license":"MIT","readme":"# reveal-gamepad-controller-plugin\n\nA Reveal.js plugin allowing to control slides with gamepad. Allowing custom mappings\n\n## How to\n\n### Install\n````shell\nnpm install reveal-gamepad-controller-plugin --save\n````\n\n### Include in your reveal slides\n\nYou can use this module directly using this code, but these are my own mapping needs. See belw to create your own mappings, or you can contribute and add it directly to the module\n````js\n<script type=\"module\">\n    import RevealGamepadController from \"./node_modules/reveal-gamepad-controller-plugin/dist/index.js\";\n    \n    Reveal.initialize({\n        hash: true,\n\n        // Learn about plugins: https://revealjs.com/plugins/\n        plugins: [RevealMarkdown, RevealHighlight, RevealNotes, RevealGamepadController(Reveal)],\n    });\n</script>\n````\nThis is available inside an ESModule, so you probably should use an `<script type=\"module\">` tag.\n\n\n### Configuration\nYou can customize the duration between 2 loops of gamepad action detection, using `loopTime` option, and the mapping to use using `mapping` option.\n````js\n<script type=\"module\">\n    import RevealGamepadController from \"./node_modules/reveal-gamepad-controller-plugin/dist/index.js\";\n    \n    const gamepadPlugin = RevealGamepadController(Reveal);\n    \n    Reveal.initialize({\n        hash: true,\n\n        gamepadController: {\n            loopTime: 1000, // For 1s\n            mapping: gamepadPlugin.MAPPINGS['SN30_8bitDo'] // using specific Mapping\n        }\n\n        // Learn about plugins: https://revealjs.com/plugins/\n        plugins: [RevealMarkdown, RevealHighlight, RevealNotes, gamepadPlugin],\n    });\n</script>\n````\n\n#### Deactivate plugin on speaker notes\nIf you use speaker notes, command will probably be given multiple times at once.\nTo avoid that, I suggest deactivating the plugin on speaker page:\n````js\n    const urlParams = new URLSearchParams(window.location.search);\n    const receiver = urlParams.get('receiver');\n    const pluginOnlyOnMain = receiver !== null ? [] : [RevealGamepadController(Reveal)];\n\n    Reveal.initialize({\n        hash: true,\n\n        // Learn about plugins: https://revealjs.com/plugins/\n        plugins: [RevealMarkdown, RevealHighlight, RevealNotes, ...pluginOnlyOnMain ],\n    });\n````\n\n### Custom Mapping\n\n#### Giving custom mapping in options\nYou can define your own mapping by just giving an object as mapping:\n````js\n<script type=\"module\">\n    import RevealGamepadController from \"./node_modules/reveal-gamepad-controller-plugin/dist/index.js\";\n    \n    const gamepadPlugin = RevealGamepadController(Reveal);\n    \n    Reveal.initialize({\n        hash: true,\n\n        gamepadController: {\n            loopTime: 1000, // For 1s\n            mapping: {\n                buttons: [\n                    {name: 'A', idx: 0, action: REVEAL_ACTIONS.NEXT},\n                    {name: 'B', idx: 1, action: REVEAL_ACTIONS.DOWN},\n                    {name: 'X', idx: 3, action: REVEAL_ACTIONS.UP},\n                    {name: 'Y', idx: 4, action: REVEAL_ACTIONS.PREV},\n                    {name: 'L1', idx: 6, action: REVEAL_ACTIONS.PREV},\n                    {name: 'L2', idx: 7, action: REVEAL_ACTIONS.NEXT},\n                    {name: 'R1', idx: 8, action: REVEAL_ACTIONS.PREV},\n                    {name: 'R2', idx: 9, action: REVEAL_ACTIONS.NEXT},\n                    {name: 'Select', idx: 10, action: REVEAL_ACTIONS.OVERVIEW},\n                    {name: 'Start', idx: 11, action: REVEAL_ACTIONS.PAUSE},\n                    {name: 'Special', idx: 12, action: REVEAL_ACTIONS.NONE},\n                    {name: 'L3', idx: 13, action: REVEAL_ACTIONS.NONE},\n                    {name: 'R3', idx: 14, action: REVEAL_ACTIONS.NONE},\n                ],\n                cross: [\n                    {\n                        name: 'Cross', idx: 9, actions: [\n                            {name: 'nothing', value: 3.3, action: REVEAL_ACTIONS.NONE},\n                            {name: 'down', value: 0.1428, action: REVEAL_ACTIONS.DOWN},\n                            {name: 'up', value: -1, action: REVEAL_ACTIONS.UP},\n                            {name: 'left', value: 0.71, action: REVEAL_ACTIONS.PREV},\n                            {name: 'right', value: -0.428, action: REVEAL_ACTIONS.NEXT}\n                        ]\n                    }\n                ],\n                analog: [\n                  {\n                    name: 'Left Analog',\n                    xIdx: 1,\n                    yIdx: 0,\n                    deadZone: 0.01,\n                    action: REVEAL_ACTIONS.MOVE_SPOTLIGHT({multiplier: 30})\n                  },\n                  {\n                    name: 'Right Analog',\n                    xIdx: 5,\n                    yIdx: 2,\n                    deadZone: 0.01,\n                    action: REVEAL_ACTIONS.MOVE_SPOTLIGHT({multiplier: 30})\n                  }\n                ]\n            }\n        }\n\n        // Learn about plugins: https://revealjs.com/plugins/\n        plugins: [RevealMarkdown, RevealHighlight, RevealNotes, gamepadPlugin],\n    });\n</script>\n````\n\n#### Define your own mapping\nYou can define the complete mapping by loading this plugin and trying to press buttons. \nCheck the console and you'll be able to identify which button is what idx etc.\n\n- For `Button` :\n  - names are here for logging purposes\n  - idx is the index of the button to scan in the `gamepad.buttons`\n  - action is the action that will be triggered on \"keydown\". It's a `() => void`.\n- For `Cross` :\n    - names are here for logging purposes\n    - idx is the index of the axis to scan in the `gamepad.axes`\n    - actions is an array of trigger options: at each loop, the cross emit the action which value is the closest to the axis value. They are `() => void`.\n    - Don't forget to have an action doing nothing in rest position of your pad.\n- For `Analog`:\n  - names are here for logging purposes\n  - xIdx and yIdx are the indexes of the axis to scan in the `gamepad.axes`\n  - deadZone allows not to trigger if values are below a certain amount\n  - action is a `(x: number, y: number) => void`.\n\nOnce done, please send me your mapping and precise pad model so that i can add it to the library for future users !\n\n#### Actions\nI defined several actions in `plugin.REVEAL_ACTIONS`. \nTheir names are normally self-explanatory, but feel free to take a look at the code if needed.\nThese are just a simple `() => void` function or `(x: number, y: number) => void` function (for analog ones). \nYou can easily define your own.","readmeFilename":"README.md"}