Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mrspeaker/gamepad-navigator
Navigate the web via your gamepad
https://github.com/mrspeaker/gamepad-navigator
Last synced: 19 days ago
JSON representation
Navigate the web via your gamepad
- Host: GitHub
- URL: https://github.com/mrspeaker/gamepad-navigator
- Owner: mrspeaker
- Created: 2012-01-02T15:04:28.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2012-01-02T15:09:50.000Z (almost 13 years ago)
- Last Synced: 2024-10-10T22:49:00.294Z (about 1 month ago)
- Language: JavaScript
- Homepage:
- Size: 89.8 KB
- Stars: 6
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Gamepad Navigator
[Greasemonky script]
v0.1 | by Mr Speaker | mrspeaker.net | @mrspeaker
Navigate the web with a gamepad! Of course!
*Up/down* to scroll the page
*left/right* to move between links.
*Fire* to visit!
*"Select"* for back, and *"Start"* for forward.This greasemonkey script currently works only in Firefox with the gamepad API (Chrome version coming soon - it looks like you need to poll the controller instead of responding to events, so I have to write a lil handler for that). The buttons are set up for the NES-style Retrolink controller - so modify the button and axis IDs to match your device.
defaults IDs are:
var axisX = 4,
axisY = 5,
buttonGo = [1, 2],
buttonBack = [8],
buttonForward = [9],Buttons are all an array - so you can specify multiple buttons to do the same thing.
The top-most link in the screen will be highlighted by default as you scroll around.Lol.