Leaflet.GameController

Gamepads interactions for Leaflet


Keywords
leaflet, gamepad
License
MIT
Install
bower install Leaflet.GameController

Documentation

Leaflet.GameController

This is an interaction handler for Leaflet, prodiving support for gamepads.

Example

Usage

map.GamepadController.enable();

Unstable version

This is unstable. It requires a recent web browser with a working HTML5 Gamepad API (draft).

This version is only tested on Chrome canary with a 3D mouse (SpaceNavigator). It should be working with other browsers or game controllers after some calibration and axis selection.