Barotrauma Client Doc
Barotrauma.Key Class Reference

Public Member Functions

 Key (InputType inputType)
 
void SetState ()
 
void SetState (bool hit, bool held)
 
bool DequeueHit ()
 
bool DequeueHeld ()
 
void Reset ()
 
void ResetHit ()
 
void ResetHeld ()
 

Properties

KeyOrMouse State [get]
 
bool Hit [get, set]
 
bool Held [get, set]
 
bool GetHeldQueue [get]
 
bool GetHitQueue [get]
 

Detailed Description

Definition at line 5 of file BarotraumaShared/SharedSource/PlayerInput.cs.

Constructor & Destructor Documentation

◆ Key()

Barotrauma.Key.Key ( InputType  inputType)

Definition at line 13 of file BarotraumaShared/SharedSource/PlayerInput.cs.

Member Function Documentation

◆ DequeueHeld()

bool Barotrauma.Key.DequeueHeld ( )

Definition at line 88 of file BarotraumaShared/SharedSource/PlayerInput.cs.

◆ DequeueHit()

bool Barotrauma.Key.DequeueHit ( )

Definition at line 81 of file BarotraumaShared/SharedSource/PlayerInput.cs.

◆ Reset()

void Barotrauma.Key.Reset ( )

◆ ResetHeld()

void Barotrauma.Key.ResetHeld ( )

◆ ResetHit()

void Barotrauma.Key.ResetHit ( )

◆ SetState() [1/2]

void Barotrauma.Key.SetState ( )

Definition at line 40 of file BarotraumaShared/SharedSource/PlayerInput.cs.

◆ SetState() [2/2]

void Barotrauma.Key.SetState ( bool  hit,
bool  held 
)

Definition at line 75 of file BarotraumaShared/SharedSource/PlayerInput.cs.

Property Documentation

◆ GetHeldQueue

bool Barotrauma.Key.GetHeldQueue
get

Definition at line 95 of file BarotraumaShared/SharedSource/PlayerInput.cs.

◆ GetHitQueue

bool Barotrauma.Key.GetHitQueue
get

◆ Held

bool Barotrauma.Key.Held
getset

Definition at line 62 of file BarotraumaShared/SharedSource/PlayerInput.cs.

◆ Hit

bool Barotrauma.Key.Hit
getset

Definition at line 50 of file BarotraumaShared/SharedSource/PlayerInput.cs.

◆ State

KeyOrMouse Barotrauma.Key.State
get

Definition at line 35 of file BarotraumaShared/SharedSource/PlayerInput.cs.