// Type definitions for react-gamepad 1.0 // Project: https://github.com/SBRK/react-gamepad // Definitions by: Brian Donovan // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.8 import * as React from 'react'; export type Button = | 'A' | 'B' | 'X' | 'Y' | 'Start' | 'Back' | 'LT' | 'RT' | 'LB' | 'RB' | 'LS' | 'RS' | 'DPadUp' | 'DPadDown' | 'DPadLeft' | 'DPadRight'; export type Axis = 'LeftStickX' | 'LeftStickY' | 'RightStickX' | 'RightStickY' | 'LeftTrigger' | 'RightTrigger'; export type InvertedAxis = | '-LeftStickX' | '-LeftStickY' | '-RightStickX' | '-RightStickY' | '-LeftTrigger' | '-RightTrigger'; export type InvertibleAxis = Axis | InvertedAxis; export interface Layout { buttons: Array