Highroad Engine v1.3
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Static Protected Attributes | Properties | List of all members
MoreMountains.HighroadEngine.InputManager Class Reference

This persistent singleton handles the inputs and sends commands to the active players More...

Inheritance diagram for MoreMountains.HighroadEngine.InputManager:

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]
 

Detailed Description

This persistent singleton handles the inputs and sends commands to the active players

Member Function Documentation

◆ AltActionButtonDown() [1/2]

virtual void MoreMountains.HighroadEngine.InputManager.AltActionButtonDown ( )
virtual

Triggered when the alt action button is being pressed for player 1

◆ AltActionButtonDown() [2/2]

virtual void MoreMountains.HighroadEngine.InputManager.AltActionButtonDown ( IActorInput  p)
virtual

Triggered when the alt action button is being pressed for a player

Parameters
pPlayer

◆ AltActionButtonPressed() [1/2]

virtual void MoreMountains.HighroadEngine.InputManager.AltActionButtonPressed ( )
virtual

Triggered when the alt action button is being pressed for player 1

Parameters
pPlayer

◆ AltActionButtonPressed() [2/2]

virtual void MoreMountains.HighroadEngine.InputManager.AltActionButtonPressed ( IActorInput  p)
virtual

Triggered when the alt action button is being pressed for a player

Parameters
pPlayer

◆ AltActionButtonReleased() [1/2]

virtual void MoreMountains.HighroadEngine.InputManager.AltActionButtonReleased ( )
virtual

Triggered when the alt action button is released for player 1

◆ AltActionButtonReleased() [2/2]

virtual void MoreMountains.HighroadEngine.InputManager.AltActionButtonReleased ( IActorInput  p)
virtual

Triggered when the alt action button is released for a player

Parameters
pPlayer

◆ Awake()

virtual void MoreMountains.HighroadEngine.InputManager.Awake ( )
virtual

initialization of the active players list and type of input

◆ DisablePlayer()

virtual void MoreMountains.HighroadEngine.InputManager.DisablePlayer ( int  controllerId)
virtual

Unlinks a player to a controller id

Parameters
controllerIdController identifier.

◆ DownButtonPressed() [1/2]

virtual void MoreMountains.HighroadEngine.InputManager.DownButtonPressed ( )
virtual

Triggered when Down Button is pressed for player 1

◆ DownButtonPressed() [2/2]

virtual void MoreMountains.HighroadEngine.InputManager.DownButtonPressed ( IActorInput  p)
virtual

Triggered when Down Button is pressed for a player

Parameters
pPlayer.

◆ HandleKeyboard()

virtual void MoreMountains.HighroadEngine.InputManager.HandleKeyboard ( )
protectedvirtual

Called at each Update(), it checks for various key presses

◆ HandleKeyboardForPlayer()

virtual void MoreMountains.HighroadEngine.InputManager.HandleKeyboardForPlayer ( int  number,
IActorInput  p 
)
protectedvirtual

Handles the input for a specific player.

Parameters
numbercontroller Id
pP.layer

◆ HorizontalPosition() [1/2]

virtual void MoreMountains.HighroadEngine.InputManager.HorizontalPosition ( float  value)
virtual

Updates horizontal position for player 1

Parameters
valueValue.

◆ HorizontalPosition() [2/2]

virtual void MoreMountains.HighroadEngine.InputManager.HorizontalPosition ( IActorInput  p,
float  value 
)
virtual

Updates horizontal position for a player

Parameters
pPlayer.
valueValue.

◆ LeftButtonPressed() [1/2]

virtual void MoreMountains.HighroadEngine.InputManager.LeftButtonPressed ( )
virtual

Triggered when Left Button is pressed for player 1

◆ LeftButtonPressed() [2/2]

virtual void MoreMountains.HighroadEngine.InputManager.LeftButtonPressed ( IActorInput  p)
virtual

Triggered when Left Button is pressed for a player

Parameters
pPlayer.

◆ LeftButtonReleased() [1/2]

virtual void MoreMountains.HighroadEngine.InputManager.LeftButtonReleased ( )
virtual

Triggered when Left Button is released for player 1

◆ LeftButtonReleased() [2/2]

virtual void MoreMountains.HighroadEngine.InputManager.LeftButtonReleased ( IActorInput  p)
virtual

Triggered when Left Button is released for a player

Parameters
pPlayer.

◆ MainActionButtonDown() [1/2]

virtual void MoreMountains.HighroadEngine.InputManager.MainActionButtonDown ( )
virtual

Triggered when the main action button is being pressed for player 1

◆ MainActionButtonDown() [2/2]

virtual void MoreMountains.HighroadEngine.InputManager.MainActionButtonDown ( IActorInput  p)
virtual

Triggered when the main action button is being pressed for a player

param name="p">Player

◆ MainActionButtonPressed() [1/2]

virtual void MoreMountains.HighroadEngine.InputManager.MainActionButtonPressed ( )
virtual

Triggered when the main action button is pressed for player 1

◆ MainActionButtonPressed() [2/2]

virtual void MoreMountains.HighroadEngine.InputManager.MainActionButtonPressed ( IActorInput  p)
virtual

Triggered when the main action button is pressed for a player

Parameters
pPlayer

◆ MainActionButtonReleased() [1/2]

virtual void MoreMountains.HighroadEngine.InputManager.MainActionButtonReleased ( )
virtual

Triggered when the main action button is released for player 1

◆ MainActionButtonReleased() [2/2]

virtual void MoreMountains.HighroadEngine.InputManager.MainActionButtonReleased ( IActorInput  p)
virtual

Triggered when the main action button is released for a player

Parameters
pPlayer

◆ MobileJoystickPosition()

virtual void MoreMountains.HighroadEngine.InputManager.MobileJoystickPosition ( Vector2  value)
virtual

Update position from mobile joystick for player 1

Parameters
valueValue.

◆ RespawnActionButtonDown()

virtual void MoreMountains.HighroadEngine.InputManager.RespawnActionButtonDown ( IActorInput  p)
virtual

Triggered when the respawn button is being pressed for a player

param name="p">Player

◆ RespawnActionButtonPressed()

virtual void MoreMountains.HighroadEngine.InputManager.RespawnActionButtonPressed ( IActorInput  p)
virtual

Triggered when the respawn button is being pressed for a player

Parameters
pPlayer

◆ RespawnActionButtonReleased()

virtual void MoreMountains.HighroadEngine.InputManager.RespawnActionButtonReleased ( IActorInput  p)
virtual

Triggered when the respawn button is released for a player

param name="p">Player

◆ RightButtonPressed() [1/2]

virtual void MoreMountains.HighroadEngine.InputManager.RightButtonPressed ( )
virtual

Triggered when Right Button is pressed for player 1

◆ RightButtonPressed() [2/2]

virtual void MoreMountains.HighroadEngine.InputManager.RightButtonPressed ( IActorInput  p)
virtual

Triggered when Right Button is pressed for a player

Parameters
pPlayer.

◆ RightButtonReleased() [1/2]

virtual void MoreMountains.HighroadEngine.InputManager.RightButtonReleased ( )
virtual

Triggered when Right Button is released for player 1

◆ RightButtonReleased() [2/2]

virtual void MoreMountains.HighroadEngine.InputManager.RightButtonReleased ( IActorInput  p)
virtual

Triggered when Right Button is released for a player

Parameters
pPlayer.

◆ SetPlayer()

virtual void MoreMountains.HighroadEngine.InputManager.SetPlayer ( int  controllerId,
IActorInput  p 
)
virtual

Links a player to a controller id

Parameters
controllerIdController identifier.
pPlayer

◆ UpButtonPressed() [1/2]

virtual void MoreMountains.HighroadEngine.InputManager.UpButtonPressed ( )
virtual

Triggered when Up Button is pressed for player 1

◆ UpButtonPressed() [2/2]

virtual void MoreMountains.HighroadEngine.InputManager.UpButtonPressed ( IActorInput  p)
virtual

Triggered when Up Button is pressed for a player

Parameters
pPlayer.

◆ Update()

virtual void MoreMountains.HighroadEngine.InputManager.Update ( )
virtual

Every frame, we get the various inputs and process them

◆ VerticalPosition() [1/2]

virtual void MoreMountains.HighroadEngine.InputManager.VerticalPosition ( float  value)
virtual

Updates vertical position for player 1

Parameters
valueValue.

◆ VerticalPosition() [2/2]

virtual void MoreMountains.HighroadEngine.InputManager.VerticalPosition ( IActorInput  p,
float  value 
)
virtual

Updates vertical position for a player

Parameters
pPlayer
valueValue.

Member Data Documentation

◆ _instance

InputManager MoreMountains.HighroadEngine.InputManager._instance
staticprotected

◆ _mmTouchControls

MMTouchControls MoreMountains.HighroadEngine.InputManager._mmTouchControls
protected

◆ _players

Dictionary<int, IActorInput> MoreMountains.HighroadEngine.InputManager._players
protected

◆ MobileTouchControls

RectTransform MoreMountains.HighroadEngine.InputManager.MobileTouchControls

Property Documentation

◆ Instance

InputManager MoreMountains.HighroadEngine.InputManager.Instance
staticget

◆ MobileDevice

bool MoreMountains.HighroadEngine.InputManager.MobileDevice
get

when true, we don't handle keyboards events


The documentation for this class was generated from the following file: