Struct JoystickEventArgs
Defines the event data for the
Inherited Members
Namespace: OpenTK.Windowing.Common
Assembly: OpenTK.Windowing.Common.dll
Syntax
public readonly struct JoystickEventArgs
Constructors
JoystickEventArgs(int, bool)
Initializes a new instance of the JoystickEventArgs struct.
Declaration
public JoystickEventArgs(int joystickId, bool isConnected)
Parameters
Type | Name | Description |
---|---|---|
int | joystickId | The Id of the joystick which triggered this event. |
bool | isConnected | A value indicating whether the joystick which triggered this event was connected. |
Properties
IsConnected
Gets a value indicating whether the joystick which triggered this event was connected.
Declaration
public bool IsConnected { get; }
Property Value
Type | Description |
---|---|
bool |
JoystickId
Gets the Id of the joystick which triggered this event.
Declaration
public int JoystickId { get; }
Property Value
Type | Description |
---|---|
int |