InputDevice.ControllerNumber Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The controller number for a given input device.
public int ControllerNumber { [Android.Runtime.Register("getControllerNumber", "()I", "")] get; }
[<get: Android.Runtime.Register("getControllerNumber", "()I", "")>]
member this.ControllerNumber : int
Property Value
The controller number of the device.
- Attributes
Remarks
The controller number for a given input device.
Each gamepad or joystick is given a unique, positive controller number when initially configured by the system. This number may change due to events such as device disconnects / reconnects or user initiated reassignment. Any change in number will trigger an event that can be observed by registering an InputManagerGlobal.InputDeviceListener
.
All input devices which are not gamepads or joysticks will be assigned a controller number of 0.
Java documentation for android.view.InputDevice.getControllerNumber()
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.