Class InputActionEventArgs
Event parameters containing information on an input event's name, source, and state
Inheritance
System.Object
System.EventArgs
InputActionEventArgs
Inherited Members
System.EventArgs.Empty
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Ladybug.UserInput
Assembly: ladybug.dll
Syntax
public class InputActionEventArgs : EventArgs
Constructors
| Improve this Doc View SourceInputActionEventArgs(String, InputSource, InputState, Int32)
Creates a new input action event argument
Declaration
public InputActionEventArgs(string name, InputSource source, InputState state, int playerIndex = -1)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Name of the action |
InputSource | source | Input source |
InputState | state | Input state |
System.Int32 | playerIndex | GamePad index (only used when source is GamePad) |
Properties
| Improve this Doc View SourceInputSource
Source of the input action
Declaration
public InputSource InputSource { get; }
Property Value
Type | Description |
---|---|
InputSource |
InputState
State of the input action
Declaration
public InputState InputState { get; }
Property Value
Type | Description |
---|---|
InputState |
Name
Name of the input action
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
System.String |
PlayerIndex
Index of the GamePad, if the action's source is GamePad
Declaration
public int PlayerIndex { get; }
Property Value
Type | Description |
---|---|
System.Int32 |