Map gamepad buttons and axes to keyboard keys
Gamepad to Keyboard Mapper Extension
Gamepad to Keyboard Mapper will allow you to map Gamepad buttons and axes to keyboard buttons. It opens the door for using a game controller or joypad for online games that only have keyboard support. This has been tested and works with Chrome OS.
Simply click the extension icon, and then add, delete, or edit mappings. Gamepad buttons go on the left, and keyboard keys on the right. When you are entering a gamepad button number, just press the button on your controller. When you are entering a key, just press the key on your keyboard.
Note: When visiting a page, you must first press a button to activate the gamepad API. Keep this in mind - your first button press on a page or while adding mappings will not be registered.
Read more
Simply click the extension icon, and then add, delete, or edit mappings. Gamepad buttons go on the left, and keyboard keys on the right. When you are entering a gamepad button number, just press the button on your controller. When you are entering a key, just press the key on your keyboard.
Note: When visiting a page, you must first press a button to activate the gamepad API. Keep this in mind - your first button press on a page or while adding mappings will not be registered.
Source Manifest.json
{"update_url": "https://clients2.google.com/service/update2/crx", "name": "Gamepad to Keyboard Mapper", "version": "1.0.1", "manifest_version": 3, "description": "Map gamepad buttons and axes to keyboard keys", "homepage_url": "https://game103.net", "action": { "default_title": "Gamepad to Keyboard Mapper", "default_popup": "popup.html" }, "host_permissions": [ "*://*/*" ], "permissions": [ "storage", "debugger" ], "content_scripts": [ { "matches": [ "*://*/*" ], "js": ["content.js"], "run_at": "document_end", "all_frames": true } ], "background": { "service_worker": "background.js" }, "content_security_policy": { "extension_pages": "script-src 'self'; object-src 'self'" }, "icons": { "16": "icon16.png", "48": "icon32.png", "138": "icon128.png" }}
Read more