{"_id":"hid-mapper","_rev":"26-027104813e91a860f1920c873611ce2e","name":"hid-mapper","description":"CLI for mapping HID button presses to their pins/values.","dist-tags":{"latest":"1.0.1"},"versions":{"0.0.1":{"name":"hid-mapper","description":"CLI for mapping HID button presses to their pins/values.","version":"0.0.1","author":{"name":"Luke Karrys","email":"luke@lukekarrys.com"},"bin":{"hid-mapper":"./index.js"},"bugs":{"url":"https://github.com/lukekarrys/hid-mapper/issues"},"dependencies":{"colors":"^0.6.2","inquirer":"^0.5.1","node-hid":"^0.3.1","yargs":"^1.2.2"},"devDependencies":{"node-gamepad":"^0.1.2"},"homepage":"https://github.com/lukekarrys/hid-mapper","keywords":["hid","controllers"],"license":"MIT","main":"index.js","repository":{"type":"git","url":"git@github.com:lukekarrys/hid-mapper.git"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"gitHead":"8cd058f2a46030dc709828d5e0db807686c379c9","_id":"hid-mapper@0.0.1","_shasum":"fc118993d31de49b8abbd77eb3da0ef85896299f","_from":".","_npmVersion":"1.4.13","_npmUser":{"name":"lukekarrys","email":"luke@lukekarrys.com"},"maintainers":[{"name":"lukekarrys","email":"luke@lukekarrys.com"}],"dist":{"shasum":"fc118993d31de49b8abbd77eb3da0ef85896299f","tarball":"https://registry.npmjs.org/hid-mapper/-/hid-mapper-0.0.1.tgz","integrity":"sha512-VHEsn8Dl15lRvkBwTFLr0nomHjAPUn7GmV/9rrjlbyEPSv5Ram6Zdu4PpgvZsyMb2jqE0BnMaYnrM8V1MVA7CA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC6SRXqzbJ3tstDNdMy2eIxPI7mtrrSF+mlkI1N1WicUAiBRkq6DWKAfkwXyoAR613PtZsg14wTbPAb6wPd+kRQ7Xw=="}]},"deprecated":"This package is no longer maintained."},"0.0.2":{"name":"hid-mapper","description":"CLI for mapping HID button presses to their pins/values.","version":"0.0.2","author":{"name":"Luke Karrys","email":"luke@lukekarrys.com"},"bin":{"hid-mapper":"./index.js"},"bugs":{"url":"https://github.com/lukekarrys/hid-mapper/issues"},"dependencies":{"async":"^0.9.0","colors":"^0.6.2","inquirer":"^0.5.1","node-hid":"^0.3.1","yargs":"^1.2.2"},"devDependencies":{"jshint":"^2.5.1","node-gamepad":"^0.1.2","precommit-hook":"^1.0.2"},"homepage":"https://github.com/lukekarrys/hid-mapper","keywords":["hid","controllers"],"license":"MIT","main":"index.js","repository":{"type":"git","url":"git@github.com:lukekarrys/hid-mapper.git"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"gitHead":"e82b9cb03672e95648a282a10126925e814a4e1b","_id":"hid-mapper@0.0.2","_shasum":"1888951ab2cf80520d11355186c8b5dc49707770","_from":".","_npmVersion":"1.4.13","_npmUser":{"name":"lukekarrys","email":"luke@lukekarrys.com"},"maintainers":[{"name":"lukekarrys","email":"luke@lukekarrys.com"}],"dist":{"shasum":"1888951ab2cf80520d11355186c8b5dc49707770","tarball":"https://registry.npmjs.org/hid-mapper/-/hid-mapper-0.0.2.tgz","integrity":"sha512-BnY03PfRoEpEnGfeSMZLHT+dUShfW0rma1sfXGOkuSH90z+u7hgyoZzsGls72AcYXVgQ++j0uHhpaLoGyiLpdg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICZ1fku54aRKZi5mXLcRFywR0teiwpQApjzRb8D+29OBAiBdJgpBG68tgf/9S2RSdsIvcEo/DVoKKOYiy3XTRHqeMQ=="}]},"deprecated":"This package is no longer maintained."},"0.0.3":{"name":"hid-mapper","description":"CLI for mapping HID button presses to their pins/values.","version":"0.0.3","author":{"name":"Luke Karrys","email":"luke@lukekarrys.com"},"bin":{"hid-mapper":"./index.js"},"bugs":{"url":"https://github.com/lukekarrys/hid-mapper/issues"},"dependencies":{"async":"^0.9.0","colors":"^0.6.2","inquirer":"^0.5.1","node-gamepad":"^0.1.2","node-hid":"^0.3.1","yargs":"^1.2.2"},"devDependencies":{"jshint":"^2.5.1","precommit-hook":"^1.0.2"},"homepage":"https://github.com/lukekarrys/hid-mapper","keywords":["hid","controllers"],"license":"MIT","main":"index.js","repository":{"type":"git","url":"git@github.com:lukekarrys/hid-mapper.git"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"gitHead":"3cda275f99f35eb1a5e81c1a004eff0cde98ccac","_id":"hid-mapper@0.0.3","_shasum":"9e12d88d3df02ee02a3da4cc9af8024a19f22daf","_from":".","_npmVersion":"1.4.13","_npmUser":{"name":"lukekarrys","email":"luke@lukekarrys.com"},"maintainers":[{"name":"lukekarrys","email":"luke@lukekarrys.com"}],"dist":{"shasum":"9e12d88d3df02ee02a3da4cc9af8024a19f22daf","tarball":"https://registry.npmjs.org/hid-mapper/-/hid-mapper-0.0.3.tgz","integrity":"sha512-dQtxePL94hw4JXFOq3RNWHwKX51YLGhs07Ksb5AXQyeSR3wakKt/GirlFD3x6iiHrEJo7pPBbw6cyiLMREC5zw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDOtRhRnoLc3XJCBS6BNLjK37edVG7EVJaSGFTX3jyJ5AIgW6gNZ4ibwhTS9DB2CHpC8myU8NhCgoV8y2G3gU2ANf8="}]},"deprecated":"This package is no longer maintained."},"0.0.4":{"name":"hid-mapper","description":"CLI for mapping HID button presses to their pins/values.","version":"0.0.4","author":{"name":"Luke Karrys","email":"luke@lukekarrys.com"},"bin":{"hid-mapper":"./index.js"},"bugs":{"url":"https://github.com/lukekarrys/hid-mapper/issues"},"dependencies":{"async":"^0.9.0","colors":"^0.6.2","inquirer":"^0.5.1","node-gamepad":"^0.1.2","node-hid":"^0.3.1","yargs":"^1.2.2"},"devDependencies":{"jshint":"^2.5.1","precommit-hook":"^1.0.2"},"homepage":"https://github.com/lukekarrys/hid-mapper","keywords":["hid","controllers"],"license":"MIT","main":"index.js","repository":{"type":"git","url":"git@github.com:lukekarrys/hid-mapper.git"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"gitHead":"1a0a1e1c21c53ce96930b1794f65bfb3558cc935","_id":"hid-mapper@0.0.4","_shasum":"8c89cf980f4684eca100b72f408fa52ea490e8e7","_from":".","_npmVersion":"1.4.13","_npmUser":{"name":"lukekarrys","email":"luke@lukekarrys.com"},"maintainers":[{"name":"lukekarrys","email":"luke@lukekarrys.com"}],"dist":{"shasum":"8c89cf980f4684eca100b72f408fa52ea490e8e7","tarball":"https://registry.npmjs.org/hid-mapper/-/hid-mapper-0.0.4.tgz","integrity":"sha512-FJitskk4Gk1TKQuo2Uv2Rbmi/KaXVppJzOhDvmfFkxMyhmdfB458OJtwKvjCjUGUTXYaiuNEs4DUf3/W2tVIVw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCwik35VBdQnjV4PHcV67be4Fq5BsSkmzLiOkZn2G6TsgIgCD/pJiWiSP8jpA+DgYus3gpdGXB6QasxJs7aQaaoB04="}]},"deprecated":"This package is no longer maintained."},"0.0.5":{"name":"hid-mapper","description":"CLI for mapping HID button presses to their pins/values.","version":"0.0.5","author":{"name":"Luke Karrys","email":"luke@lukekarrys.com"},"bin":{"hid-mapper":"./index.js"},"bugs":{"url":"https://github.com/lukekarrys/hid-mapper/issues"},"dependencies":{"async":"^0.9.0","colors":"^0.6.2","inquirer":"^0.5.1","node-gamepad":"^0.1.2","node-hid":"^0.3.1","underscore":"^1.6.0","yargs":"^1.2.2"},"devDependencies":{"jshint":"^2.5.1","precommit-hook":"^1.0.2"},"homepage":"https://github.com/lukekarrys/hid-mapper","keywords":["hid","controllers"],"license":"MIT","main":"index.js","repository":{"type":"git","url":"git@github.com:lukekarrys/hid-mapper.git"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"gitHead":"706276aef495e18765cdf1cc5bb2ceba9847f63f","_id":"hid-mapper@0.0.5","_shasum":"d295900115a5785f124c27d8a7d23bded6749e24","_from":".","_npmVersion":"1.4.13","_npmUser":{"name":"lukekarrys","email":"luke@lukekarrys.com"},"maintainers":[{"name":"lukekarrys","email":"luke@lukekarrys.com"}],"dist":{"shasum":"d295900115a5785f124c27d8a7d23bded6749e24","tarball":"https://registry.npmjs.org/hid-mapper/-/hid-mapper-0.0.5.tgz","integrity":"sha512-Mr6kst/ZM03Ur4qC5FPeWLJLiqGH7vTLwHFAPl86VyVL3Un1B3JTuAWVO0CTwNdVVtUhf3/J/yFdvO8MQDWSSA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD0aFN5n8G/BLA1LwAVT38Urz3IFyG9nafGJaHicrzMXgIgUdLMuzUMZlxyAhbTzvehj4/RNmfBgAiiN4vkdh3J0co="}]},"deprecated":"This package is no longer maintained."},"0.0.6":{"name":"hid-mapper","description":"CLI for mapping HID button presses to their pins/values.","version":"0.0.6","author":{"name":"Luke Karrys","email":"luke@lukekarrys.com"},"bin":{"hid-mapper":"./index.js"},"bugs":{"url":"https://github.com/lukekarrys/hid-mapper/issues"},"dependencies":{"async":"^0.9.0","colors":"^0.6.2","inquirer":"^0.5.1","node-gamepad":"^0.1.2","node-hid":"^0.3.1","underscore":"^1.6.0","yargs":"^1.2.2"},"devDependencies":{"jshint":"^2.5.1","precommit-hook":"^1.0.2"},"homepage":"https://github.com/lukekarrys/hid-mapper","keywords":["hid","controllers"],"license":"MIT","main":"index.js","repository":{"type":"git","url":"git@github.com:lukekarrys/hid-mapper.git"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"gitHead":"41487173278a7b9c93a0ac0e7eaf237ec032df0f","_id":"hid-mapper@0.0.6","_shasum":"c0829aa09c07ba4459dc1a30f6464c3d88c3ff2f","_from":".","_npmVersion":"1.4.13","_npmUser":{"name":"lukekarrys","email":"luke@lukekarrys.com"},"maintainers":[{"name":"lukekarrys","email":"luke@lukekarrys.com"}],"dist":{"shasum":"c0829aa09c07ba4459dc1a30f6464c3d88c3ff2f","tarball":"https://registry.npmjs.org/hid-mapper/-/hid-mapper-0.0.6.tgz","integrity":"sha512-bH02HlGPZHcNHm7+u16vbTGjX0m1jX7qeFpIsztiLJ1ii6REk9G22W9b3Q+p2GpblGKsgPfNo5L8ct978Y6ZLw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEUy9b9hNVRsxZYgxTumU+/qTZ2TZdJTvx72sXFIADNmAiEA8QSHGe66VWjSf+hS537vZnyX9h/R8o59k+HUXG6f2s4="}]},"deprecated":"This package is no longer maintained."},"0.0.7":{"name":"hid-mapper","description":"CLI for mapping HID button presses to their pins/values.","version":"0.0.7","author":{"name":"Luke Karrys","email":"luke@lukekarrys.com"},"bin":{"hid-mapper":"./index.js"},"bugs":{"url":"https://github.com/lukekarrys/hid-mapper/issues"},"dependencies":{"async":"^0.9.0","colors":"^0.6.2","inquirer":"^0.5.1","node-gamepad":"^0.1.2","node-hid":"^0.3.1","underscore":"^1.6.0","yargs":"^1.2.2"},"devDependencies":{"jshint":"^2.5.1","precommit-hook":"^1.0.2"},"homepage":"https://github.com/lukekarrys/hid-mapper","keywords":["hid","controllers"],"license":"MIT","main":"index.js","repository":{"type":"git","url":"git@github.com:lukekarrys/hid-mapper.git"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"gitHead":"8f6de58498beac7358f8496483af717553e6bdcd","_id":"hid-mapper@0.0.7","_shasum":"a34a1a5895bd76c41fc2cf9b14b6a49cfe5f97d0","_from":".","_npmVersion":"1.4.13","_npmUser":{"name":"lukekarrys","email":"luke@lukekarrys.com"},"maintainers":[{"name":"lukekarrys","email":"luke@lukekarrys.com"}],"dist":{"shasum":"a34a1a5895bd76c41fc2cf9b14b6a49cfe5f97d0","tarball":"https://registry.npmjs.org/hid-mapper/-/hid-mapper-0.0.7.tgz","integrity":"sha512-nwk7m9/Rz3o/IpBTl2Tafd1NjtKOzgPiUhILAFnKnbNqXqMI5ZiTmxXZitc9qDKR5oVw3nXoGrwDuKhP6vmpgQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDxB+LuO8xCaxO9Tbn/1CjZIyLn9BpOKb8Cb0Z1kKcNngIgVbGdlZo8dxyHNZH5QgqhfeGZ8kvBobJ7qOAVsusWSB0="}]},"deprecated":"This package is no longer maintained."},"0.1.0":{"name":"hid-mapper","description":"CLI for mapping HID button presses to their pins/values.","version":"0.1.0","author":{"name":"Luke Karrys","email":"luke@lukekarrys.com"},"bin":{"hid-mapper":"./index.js"},"bugs":{"url":"https://github.com/lukekarrys/hid-mapper/issues"},"dependencies":{"async":"^0.9.0","colors":"^0.6.2","inquirer":"^0.5.1","node-gamepad":"^0.1.2","node-hid":"^0.3.1","underscore":"^1.6.0","yargs":"^1.2.2"},"devDependencies":{"jshint":"^2.5.1","precommit-hook":"^1.0.2"},"homepage":"https://github.com/lukekarrys/hid-mapper","keywords":["hid","controllers"],"license":"MIT","main":"index.js","repository":{"type":"git","url":"git@github.com:lukekarrys/hid-mapper.git"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"gitHead":"4d81b62a4e3aa1e04dd02efea791730b55f86937","_id":"hid-mapper@0.1.0","_shasum":"a7ad5e3e891396ced99d4cc718b62bf267860595","_from":".","_npmVersion":"1.4.13","_npmUser":{"name":"lukekarrys","email":"luke@lukekarrys.com"},"maintainers":[{"name":"lukekarrys","email":"luke@lukekarrys.com"}],"dist":{"shasum":"a7ad5e3e891396ced99d4cc718b62bf267860595","tarball":"https://registry.npmjs.org/hid-mapper/-/hid-mapper-0.1.0.tgz","integrity":"sha512-IBukw2I+y4HqWN246Tpq4oIZYI0Ie32Lne2BizfDeGnrYZ02CenIdB6VK6EcSonmdfl3uAKcvvEOTIF9P3ozUg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD0rEqbdqBb+/zlcjTS5YOGXV5I7hoPpTXuPqjP78TSgwIhAIk+ezrkXhDOH53+WVKSmuw4tOkVgcJBNiu2QmUjpSMj"}]},"deprecated":"This package is no longer maintained."},"1.0.0":{"name":"hid-mapper","description":"CLI for mapping HID button presses to their pins/values.","version":"1.0.0","author":{"name":"Luke Karrys","email":"luke@lukekarrys.com"},"bin":{"hid-mapper":"./index.js"},"bugs":{"url":"https://github.com/lukekarrys/hid-mapper/issues"},"dependencies":{"async":"^0.9.0","colors":"^0.6.2","inquirer":"^0.5.1","node-gamepad":"^0.1.2","node-hid":"^0.3.1","underscore":"^1.6.0","yargs":"^1.2.2"},"devDependencies":{"precommit-hook":"^1.0.5"},"homepage":"https://github.com/lukekarrys/hid-mapper","keywords":["hid","controllers"],"license":"MIT","main":"index.js","repository":{"type":"git","url":"git@github.com:lukekarrys/hid-mapper.git"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"gitHead":"e8c753554a87c5650fce26c3416d981d173544aa","_id":"hid-mapper@1.0.0","_shasum":"a42f09fb52f73b38991336b403fe84f0e24014c9","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"lukekarrys","email":"luke@lukekarrys.com"},"maintainers":[{"name":"lukekarrys","email":"luke@lukekarrys.com"}],"dist":{"shasum":"a42f09fb52f73b38991336b403fe84f0e24014c9","tarball":"https://registry.npmjs.org/hid-mapper/-/hid-mapper-1.0.0.tgz","integrity":"sha512-3RQWUtIoyuBqI5zeP0IHt6oGokOlNfxeTpl92pNPnjFaZWV++8GcOe0WYscKBonpgONYvHaafaGqtolgv5/kOw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEO5I5R1gVtgnRrQOH8h10EH0zUNmfwnQNXmhqVR1EEtAiARXW4ExbDvL0Hng9WJv0fobdgjIjfv7PbVbIYmu3k9iA=="}]},"deprecated":"This package is no longer maintained."},"1.0.1":{"name":"hid-mapper","description":"CLI for mapping HID button presses to their pins/values.","version":"1.0.1","author":{"name":"Luke Karrys","email":"luke@lukekarrys.com"},"bin":{"hid-mapper":"./index.js"},"bugs":{"url":"https://github.com/lukekarrys/hid-mapper/issues"},"dependencies":{"async":"^0.9.0","colors":"^0.6.2","inquirer":"^0.5.1","node-gamepad":"^0.1.2","node-hid":"^0.3.1","underscore":"^1.6.0","yargs":"^1.2.2"},"devDependencies":{"precommit-hook":"^1.0.5"},"homepage":"https://github.com/lukekarrys/hid-mapper","keywords":["hid","controllers"],"license":"MIT","main":"index.js","repository":{"type":"git","url":"git@github.com:lukekarrys/hid-mapper.git"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"gitHead":"8ef093b3670258a077f505e040f220eceb3c827f","_id":"hid-mapper@1.0.1","_shasum":"1dd84ea78555c09eff11add41e9bde4ab39c7c54","_from":".","_npmVersion":"2.0.0","_npmUser":{"name":"lukekarrys","email":"luke@lukekarrys.com"},"maintainers":[{"name":"lukekarrys","email":"luke@lukekarrys.com"}],"dist":{"shasum":"1dd84ea78555c09eff11add41e9bde4ab39c7c54","tarball":"https://registry.npmjs.org/hid-mapper/-/hid-mapper-1.0.1.tgz","integrity":"sha512-/RjQ61b+WyWa8blzF/nH8Pc7Al6L5y6qbJmoHScQDeJlmgJ5/vf57uelgXxVOIf0FWwz3fsX39lGHgS4AC/50Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDe0lRHOCWsO9mKWEeVsMY8TimB9V9FOOv9Tnz9K9qtbQIhAOgQf9OdF4/Lcz9jec8qJPsjgFyGq2JDgtbWjo0QclC9"}]},"deprecated":"This package is no longer maintained."}},"readme":"hid-mapper\n==========\n\n[![NPM](https://nodei.co/npm/hid-mapper.png)](https://nodei.co/npm/hid-mapper/)\n\nCLI for mapping HID button presses to their pins/values.\n\n\n## Install\n\n`npm install hid-mapper -g`\n\n\n## Usage\n\n`hid-mapper --vendor 121 --product 17`\n\nThis will open up a CLI, waiting for a button to be pressed on the specified device. If you don't specify a product or a vendor, a list of available devices will be displayed.\n\n\n### `--buttons` / `--joysticks`\n\nYou may specify a list of buttons and/or joysticks that you want to press and the CLI will prompt for each one. One you have been prompted for all the buttons/joysticks you will be prompted to save the file.\n\n```sh\n$ hid-mapper --vendor 121 --product 17 --buttons a,b --joysticks center\n\nPress the a button:\nAdded {\"pin\":5,\"value\":47,\"name\":\"a\"}\n\nPress the b button:\nAdded {\"pin\":5,\"value\":79,\"name\":\"b\"}\n\nMove the center joystick in the x direction:\nAdded {\"name\":\"center\",\"x\":{\"pin\":0}}\n\nMove the center joystick in the y direction:\nAdded {\"name\":\"center\",\"x\":{\"pin\":0},\"y\":{\"pin\":1}}\n\n[?] Enter a filename to save this file (blank to skip):\n```\n\nIf you don't specify any buttons or joysticks, the CLI will wait for any buttons to be pressed. After a button is pressed or a joystick is moved, the CLI will present a prompt to name that button/joystick. To specify it as a joystick, use the format `joystick_name.[x|y]`.\n\n**Note: this method is not as reliable as the method above, especially when it comes to joystick events.**\n\n```sh\n$ hid-mapper --vendor 121 --product 17\n\nPress any button on your controller\n^C to quit with an option to save\n\n[?] Enter an identifier for pin change 0/32: center.x\n{\"name\":\"center\",\"x\":{\"pin\":0}}\n\n[?] Enter an identifier for pin change 1/80: center.y\n{\"name\":\"center\",\"x\":{\"pin\":0},\"y\":{\"pin\":1}}\n\n[?] Enter an identifier for pin change 6/4: a\n{\"pin\":6,\"value\":4,\"name\":\"a\"}\n```\n\n#### `--platform`\n\nThere are also special predefined platforms that you can pass to the `--platform` option. Right now only `snes` and `n64` are supported. These are just a shortcut to the actual list of buttons and joysticks on each of those controllers.\n\n\n### Other Options\n\n#### `--ignore` (default: none)\nSome hid devices (especially those with joysticks) will have some pins that toggle values very quickly, even if no buttons or joysticks are being touched. `hid-mapper` does its best to try and determine those pins/values during calibration, and then ignore those changes. However, this method isn't foolproof, so there might be times where prompts for buttons/joysticks are happening automatically. If this is the case, you can pass those to the `--ignore` option manually. Some examples:\n\n```sh\n# Ignore all changes on pin 2\nhid-mapper --vendor 121 --product 17 --ignore 2\n\n# Ignore all changes on pin 3 and when pin 2 changes its value to 128\nhid-mapper --vendor 121 --product 17 --ignore 2/128,3\n```\n\n#### `--sensitivity` (default: 2)\n\nTo go along with the above `ignore` option, there is a sensitivity option. This can be used to ignore a range of values. It works so if `2/128` is being ignored, it will actually ignore all changes on pin `2` for the values `126-130` (inclusive).\n\n\n#### `--loglevel` (default: 0)\n\nSet `--loglevel` to `1` or `2` to see the events from the device logged to the console (along with the calibration information). `1` will log the `change` and `joystick` events determined by `hid-mapper`. `2` will log all data events from `node-hid` (which run about every 7-10ms).\n\n\n#### `--playground` (default: false)\n\nWhen `--playground` mode is on, nothing will be prompted at all. This works best with the above `--loglevel` option, since you can see all the data being emitted in case something isn't working right or you just want to examine the raw data.\n\n\n\n### Saving\n\nPress `^C` to quit the program and you will be prompted with a filename to save the device mapping.\n\n```sh\n[?] Enter a filename to save this file (blank to skip): filename.json\nFile saved to filename.json\n```\n\n\n## What do I use this for?\n\nI had a few USB controllers laying around the house and I wanted to create mappings so they could be used with [node-gamepad](https://www.npmjs.org/package/node-gamepad). This CLI made it really easy to create and save the necessary configuration values for all my controllers.\n\n\n## Testing a saved file\n\nAfter you save a file you can test and make sure that it works with [node-gamepad](https://www.npmjs.org/package/node-gamepad) by running `hid-mapper --test filename.json`.\n\nThis will bring up a repl where you can press buttons and see which press/release events are logged.\n\n\n### License\n\nMIT","maintainers":[{"name":"lukekarrys","email":"luke@lukekarrys.com"}],"time":{"modified":"2022-06-18T20:37:50.133Z","created":"2014-06-02T18:33:50.615Z","0.0.1":"2014-06-02T18:33:50.615Z","0.0.2":"2014-06-03T01:01:11.053Z","0.0.3":"2014-06-03T19:56:23.399Z","0.0.4":"2014-06-03T20:04:59.630Z","0.0.5":"2014-06-05T16:00:35.697Z","0.0.6":"2014-06-05T19:37:45.576Z","0.0.7":"2014-06-05T23:46:00.860Z","0.1.0":"2014-06-09T18:32:02.974Z","1.0.0":"2014-08-02T21:00:28.148Z","1.0.1":"2014-10-08T20:30:06.727Z"},"homepage":"https://github.com/lukekarrys/hid-mapper","keywords":["hid","controllers"],"repository":{"type":"git","url":"git@github.com:lukekarrys/hid-mapper.git"},"author":{"name":"Luke Karrys","email":"luke@lukekarrys.com"},"bugs":{"url":"https://github.com/lukekarrys/hid-mapper/issues"},"license":"MIT","readmeFilename":"README.md","users":{"subso":true}}