Skip to content

mgm793/controllerStadia

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stadia Controller

This library allows you to use a Stadia controller to control your website. You can use it with JS and TS.

Installation

npm i stadiacontroller

How to use

The only thing you need to do to use it is specify a callback for a specific button/stick or for all of them.

new StadiaController({
  A: (value) => { //specific button/stick
    console.log('A', value);
  },
  all: (value) => { //all buttons/sticks
    console.log('all', value);
  }
})

Available Buttons and Sticks

'A', 'B', 'X', 'Y', 'L1', 'R1', 'L2', 'R2', 'leftArrow', 'rightArrow', 'upArrow', 'downArrow', 'options', 'menu', 'capture', 'assistant', 'stadiaButton', 'L3', 'R3', 'leftStick', 'rightStick' and 'all'.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published