Project Arrhythmia
A video game developed by Vitamin Games.
Loading...
Searching...
No Matches
InputDataManager Class Reference
+ Inheritance diagram for InputDataManager:

Classes

class  CustomPlayer
 

Public Member Functions

delegate void PlayerAddedDelegate (CustomPlayer _player)
 
void BindEditorKeys ()
 
void BindMenuKeys ()
 
void SetControllerRumble (int _index, float _rumble)
 
void SetControllerRumble (int _index, float _rumbleL, float _rumbleR, bool _withPlayer=true)
 
void StopControllerRumble (int _index)
 
void SetAllControllerRumble (float _rumble)
 
void SetAllControllerRumble (float _rumbleL, float _rumbleR, bool _withPlayer=true)
 
void StopAllControllerRumble ()
 
void SetAllControllerColor (Color _col)
 
Player AssignPlayer (CustomPlayer _player, Vector3 _pos, Color _col)
 
void ClearInputs (bool _leaveKeyboard=false)
 
void ResetPlayers ()
 

Public Attributes

bool debug = false
 
CustomPlayer defaultPlayer
 
List< CustomPlayerplayers = new List<CustomPlayer>(maxPlayers)
 
MyMenuActions menuActions
 
MyEditorActions editorActions
 
MyGameActions gameActions
 
GameObject[] PlayerPrefabs
 
bool playersCanJoin = true
 

Static Public Attributes

const int maxPlayers = 4
 
static InputDataManager inst
 

Properties

List< CustomPlayerAlivePlayers [get]
 

Events

PlayerAddedDelegate playerAddedEvent
 
static Action< CustomPlayerplayerDisconnectedEvent
 
static Action< CustomPlayerplayerReconnectedEvent
 
static Action< InControl.InputDevice > controllersConnectedEvent
 
static Action< InControl.InputDevice > controllerDisconnectedEvent
 

Private Member Functions

void Awake ()
 
void ControllerConnected (InputDevice _device)
 
void ControllerDisconnected (InputDevice _device)
 
void OnEnable ()
 
void OnDisable ()
 
void Update ()
 
bool JoinButtonWasPressedOnListener (MyGameActions actions)
 
CustomPlayer FindPlayerUsingJoystick (InputDevice inputDevice)
 
bool ThereIsNoPlayerUsingJoystick (InputDevice inputDevice)
 
CustomPlayer FindPlayerUsingKeyboard ()
 
bool ThereIsNoPlayerUsingKeyboard ()
 
void RemovePlayer (CustomPlayer player)
 

Private Attributes

MyGameActions keyboardListener
 
MyGameActions joystickListener
 

Static Private Attributes

const string className = "[<color=#4CAF50>InputDataManager</color>] \n"
 

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