Class PlayerHandle
Namespace: UnityEngine.InputNew
Syntax
public class PlayerHandle : IInputConsumer
Fields
assignments
Declaration
public List<PlayerDeviceAssignment> assignments
Field Value
Type | Description |
---|---|
List<PlayerDeviceAssignment> |
index
Declaration
public readonly int index
Field Value
Type | Description |
---|---|
Int32 |
maps
Declaration
public List<ActionMapInput> maps
Field Value
Type | Description |
---|---|
List<ActionMapInput> |
onChange
Declaration
public static PlayerHandle.ChangeEvent onChange
Field Value
Type | Description |
---|---|
PlayerHandle.ChangeEvent |
Properties
global
Declaration
public bool global { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
processAll
Declaration
public bool processAll { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Methods
AssignDevice(InputDevice, Boolean)
Declaration
public bool AssignDevice(InputDevice device, bool assign)
Parameters
Type | Name | Description |
---|---|---|
InputDevice | device | |
Boolean | assign |
Returns
Type | Description |
---|---|
Boolean |
BeginFrame()
Declaration
public void BeginFrame()
Implements
Destroy()
Declaration
public void Destroy()
EndFrame()
Declaration
public void EndFrame()
Implements
GetActions(ActionMap)
Declaration
public ActionMapInput GetActions(ActionMap actionMap)
Parameters
Type | Name | Description |
---|---|---|
ActionMap | actionMap |
Returns
Type | Description |
---|---|
ActionMapInput |
GetActions<T>()
Declaration
public T GetActions<T>()
where T : ActionMapInput
Returns
Type | Description |
---|---|
T |
Type Parameters
Name | Description |
---|---|
T |
GetApplicableDevices()
Declaration
public IEnumerable<InputDevice> GetApplicableDevices()
Returns
Type | Description |
---|---|
IEnumerable<InputDevice> |
ProcessEvent(InputEvent)
Declaration
public bool ProcessEvent(InputEvent inputEvent)
Parameters
Type | Name | Description |
---|---|---|
InputEvent | inputEvent |
Returns
Type | Description |
---|---|
Boolean |