Highroad Engine v1.3
|
This persistent singleton handles the inputs and sends commands to the active players More...
Public Member Functions | |
virtual void | Awake () |
initialization of the active players list and type of input More... | |
virtual void | SetPlayer (int controllerId, IActorInput p) |
Links a player to a controller id More... | |
virtual void | DisablePlayer (int controllerId) |
Unlinks a player to a controller id More... | |
virtual void | Update () |
Every frame, we get the various inputs and process them More... | |
virtual void | MainActionButtonDown () |
Triggered when the main action button is being pressed for player 1 More... | |
virtual void | MainActionButtonDown (IActorInput p) |
Triggered when the main action button is being pressed for a player More... | |
virtual void | MainActionButtonReleased () |
Triggered when the main action button is released for player 1 More... | |
virtual void | MainActionButtonReleased (IActorInput p) |
Triggered when the main action button is released for a player More... | |
virtual void | MainActionButtonPressed () |
Triggered when the main action button is pressed for player 1 More... | |
virtual void | MainActionButtonPressed (IActorInput p) |
Triggered when the main action button is pressed for a player More... | |
virtual void | AltActionButtonDown () |
Triggered when the alt action button is being pressed for player 1 More... | |
virtual void | AltActionButtonDown (IActorInput p) |
Triggered when the alt action button is being pressed for a player More... | |
virtual void | AltActionButtonReleased () |
Triggered when the alt action button is released for player 1 More... | |
virtual void | AltActionButtonReleased (IActorInput p) |
Triggered when the alt action button is released for a player More... | |
virtual void | AltActionButtonPressed () |
Triggered when the alt action button is being pressed for player 1 More... | |
virtual void | AltActionButtonPressed (IActorInput p) |
Triggered when the alt action button is being pressed for a player More... | |
virtual void | RespawnActionButtonPressed (IActorInput p) |
Triggered when the respawn button is being pressed for a player More... | |
virtual void | RespawnActionButtonDown (IActorInput p) |
Triggered when the respawn button is being pressed for a player More... | |
virtual void | RespawnActionButtonReleased (IActorInput p) |
Triggered when the respawn button is released for a player More... | |
virtual void | LeftButtonPressed () |
Triggered when Left Button is pressed for player 1 More... | |
virtual void | LeftButtonPressed (IActorInput p) |
Triggered when Left Button is pressed for a player More... | |
virtual void | LeftButtonReleased () |
Triggered when Left Button is released for player 1 More... | |
virtual void | LeftButtonReleased (IActorInput p) |
Triggered when Left Button is released for a player More... | |
virtual void | RightButtonPressed () |
Triggered when Right Button is pressed for player 1 More... | |
virtual void | RightButtonPressed (IActorInput p) |
Triggered when Right Button is pressed for a player More... | |
virtual void | RightButtonReleased () |
Triggered when Right Button is released for player 1 More... | |
virtual void | RightButtonReleased (IActorInput p) |
Triggered when Right Button is released for a player More... | |
virtual void | UpButtonPressed () |
Triggered when Up Button is pressed for player 1 More... | |
virtual void | UpButtonPressed (IActorInput p) |
Triggered when Up Button is pressed for a player More... | |
virtual void | DownButtonPressed () |
Triggered when Down Button is pressed for player 1 More... | |
virtual void | DownButtonPressed (IActorInput p) |
Triggered when Down Button is pressed for a player More... | |
virtual void | MobileJoystickPosition (Vector2 value) |
Update position from mobile joystick for player 1 More... | |
virtual void | HorizontalPosition (float value) |
Updates horizontal position for player 1 More... | |
virtual void | HorizontalPosition (IActorInput p, float value) |
Updates horizontal position for a player More... | |
virtual void | VerticalPosition (float value) |
Updates vertical position for player 1 More... | |
virtual void | VerticalPosition (IActorInput p, float value) |
Updates vertical position for a player More... | |
Public Attributes | |
RectTransform | MobileTouchControls |
Protected Member Functions | |
virtual void | HandleKeyboard () |
Called at each Update(), it checks for various key presses More... | |
virtual void | HandleKeyboardForPlayer (int number, IActorInput p) |
Handles the input for a specific player. More... | |
Protected Attributes | |
Dictionary< int, IActorInput > | _players |
MMTouchControls | _mmTouchControls |
Static Protected Attributes | |
static InputManager | _instance |
Properties | |
bool | MobileDevice [get] |
when true, we don't handle keyboards events More... | |
static InputManager | Instance [get] |
This persistent singleton handles the inputs and sends commands to the active players
|
virtual |
Triggered when the alt action button is being pressed for player 1
|
virtual |
Triggered when the alt action button is being pressed for a player
p | Player |
|
virtual |
Triggered when the alt action button is being pressed for player 1
p | Player |
|
virtual |
Triggered when the alt action button is being pressed for a player
p | Player |
|
virtual |
Triggered when the alt action button is released for player 1
|
virtual |
Triggered when the alt action button is released for a player
p | Player |
|
virtual |
initialization of the active players list and type of input
|
virtual |
Unlinks a player to a controller id
controllerId | Controller identifier. |
|
virtual |
Triggered when Down Button is pressed for player 1
|
virtual |
Triggered when Down Button is pressed for a player
p | Player. |
|
protectedvirtual |
Called at each Update(), it checks for various key presses
|
protectedvirtual |
Handles the input for a specific player.
number | controller Id |
p | P.layer |
|
virtual |
Updates horizontal position for player 1
value | Value. |
|
virtual |
Updates horizontal position for a player
p | Player. |
value | Value. |
|
virtual |
Triggered when Left Button is pressed for player 1
|
virtual |
Triggered when Left Button is pressed for a player
p | Player. |
|
virtual |
Triggered when Left Button is released for player 1
|
virtual |
Triggered when Left Button is released for a player
p | Player. |
|
virtual |
Triggered when the main action button is being pressed for player 1
|
virtual |
Triggered when the main action button is being pressed for a player
param name="p">Player
|
virtual |
Triggered when the main action button is pressed for player 1
|
virtual |
Triggered when the main action button is pressed for a player
p | Player |
|
virtual |
Triggered when the main action button is released for player 1
|
virtual |
Triggered when the main action button is released for a player
p | Player |
|
virtual |
Update position from mobile joystick for player 1
value | Value. |
|
virtual |
Triggered when the respawn button is being pressed for a player
param name="p">Player
|
virtual |
Triggered when the respawn button is being pressed for a player
p | Player |
|
virtual |
Triggered when the respawn button is released for a player
param name="p">Player
|
virtual |
Triggered when Right Button is pressed for player 1
|
virtual |
Triggered when Right Button is pressed for a player
p | Player. |
|
virtual |
Triggered when Right Button is released for player 1
|
virtual |
Triggered when Right Button is released for a player
p | Player. |
|
virtual |
Links a player to a controller id
controllerId | Controller identifier. |
p | Player |
|
virtual |
Triggered when Up Button is pressed for player 1
|
virtual |
Triggered when Up Button is pressed for a player
p | Player. |
|
virtual |
Every frame, we get the various inputs and process them
|
virtual |
Updates vertical position for player 1
value | Value. |
|
virtual |
Updates vertical position for a player
p | Player |
value | Value. |
|
staticprotected |
|
protected |
|
protected |
RectTransform MoreMountains.HighroadEngine.InputManager.MobileTouchControls |
|
staticget |
|
get |
when true, we don't handle keyboards events