Gamepad.forPlatform constructor
- int index
Returns a functional instance of this class, or a mock on unsupported platforms.
Implementation
factory Gamepad.forPlatform(int index) => isSdlSupported
? DesktopGamepad(index) : MockGamepad(index);
Returns a functional instance of this class, or a mock on unsupported platforms.
factory Gamepad.forPlatform(int index) => isSdlSupported
? DesktopGamepad(index) : MockGamepad(index);