My Project
Loading...
Searching...
No Matches
Classes | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
Teal.Controls Class Reference
Inheritance diagram for Teal.Controls:

Classes

class  InputVars
 

Public Member Functions

bool IsPressed (Key c)
 
bool JustPressed (Key c)
 
bool JustReleased (Key c)
 
void SetKey (Key c, bool pressed)
 
float GetAxis (Axis x)
 
void SetAxis (Axis x, float v)
 
void UpdateLateVars ()
 
void Master_AssignPlayer (Player player)
 
void AssignPlayer (Player player)
 
ushort GetPlayerId ()
 
void LockKeys (bool locked)
 
bool IsLocal ()
 
bool IsBot ()
 
bool IsLocalAuthority ()
 

Static Public Member Functions

static bool HasSameSyncKeys (InputVars input, InputVars lastInput, Key[] syncKeys)
 
static bool HasSameSyncAxis (InputVars input, InputVars lastInput, Axis[] syncAxis, float threshold=0.01f)
 
static bool HasSameSyncPointers (InputVars input, InputVars lastInput, Pointer[] syncPointers, float threshold=0.1f)
 
static void TakeNetworkInput (BitPacker packer, Controls controls, Key[] syncKeys, Axis[] syncAxis, Pointer[] syncPointers)
 
static void TakeDummyNetworkInput (BitPacker packer, Key[] syncKeys, Axis[] syncAxis, Pointer[] syncPointers)
 
static void StoreNetworkInput (BitPacker packer, Key[] syncKeys, Axis[] syncAxis, Pointer[] syncPointers, ref InputVars vars)
 
static void SendNetworkInput (BitPacker packer, InputVars input, InputVars lastInput, Key[] syncKeys, Axis[] syncAxis, Pointer[] syncPointers, float threshold=0.01f)
 
static byte PackKeys (InputVars input, Key[] syncKeys)
 
static void UnpackKeys (InputVars input, byte keys, Key[] syncKeys)
 
static void SendAxis (BitPacker packer, float dir, float threshold)
 
static float ReceiveAxis (BitPacker packer)
 
static void SendPointer (BitPacker packer, Vector2 pointer)
 
static Vector2 ReceivePointer (BitPacker packer)
 
static bool IsMine (PumpObject po, Controls controls)
 

Public Attributes

Player player
 
bool dead
 
PlayerEvent Assigned = new PlayerEvent()
 
PlayerEvent Unassigned = new PlayerEvent()
 
InputVarsEvent OnInput = new InputVarsEvent()
 
UnityEvent OnLateVars = new UnityEvent()
 
Player lastPlayer
 
InputVars input
 
InputVars prevInput
 
InputVars updateInput
 
InputVars lockedInput
 
bool lockedAxis
 
bool lockedMouse
 

Static Public Attributes

static List< Controls_controls = new List<Controls>()
 

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