Barotrauma Client Doc
Barotrauma.KeyOrMouse Class Reference

Public Member Functions

 KeyOrMouse (Keys keyBinding)
 
 KeyOrMouse (MouseButton mouseButton)
 
bool IsDown ()
 
bool IsHit ()
 
override bool Equals (object obj)
 
override string ToString ()
 
override int GetHashCode ()
 
LocalizedString GetName ()
 

Static Public Member Functions

static implicit operator KeyOrMouse (Keys key)
 
static implicit operator KeyOrMouse (MouseButton mouseButton)
 
static bool operator== (KeyOrMouse a, KeyOrMouse b)
 
static bool operator!= (KeyOrMouse a, KeyOrMouse b)
 
static bool operator== (KeyOrMouse keyOrMouse, Keys key)
 
static bool operator!= (KeyOrMouse keyOrMouse, Keys key)
 
static bool operator== (Keys key, KeyOrMouse keyOrMouse)
 
static bool operator!= (Keys key, KeyOrMouse keyOrMouse)
 
static bool operator== (KeyOrMouse keyOrMouse, MouseButton mb)
 
static bool operator!= (KeyOrMouse keyOrMouse, MouseButton mb)
 
static bool operator== (MouseButton mb, KeyOrMouse keyOrMouse)
 
static bool operator!= (MouseButton mb, KeyOrMouse keyOrMouse)
 

Public Attributes

readonly Keys Key
 

Properties

LocalizedString Name [get]
 
MouseButton MouseButton [get]
 

Detailed Description

Definition at line 23 of file BarotraumaClient/ClientSource/PlayerInput.cs.

Constructor & Destructor Documentation

◆ KeyOrMouse() [1/2]

Barotrauma.KeyOrMouse.KeyOrMouse ( Keys  keyBinding)

Definition at line 43 of file BarotraumaClient/ClientSource/PlayerInput.cs.

◆ KeyOrMouse() [2/2]

Barotrauma.KeyOrMouse.KeyOrMouse ( MouseButton  mouseButton)

Definition at line 49 of file BarotraumaClient/ClientSource/PlayerInput.cs.

Member Function Documentation

◆ Equals()

override bool Barotrauma.KeyOrMouse.Equals ( object  obj)

◆ GetHashCode()

override int Barotrauma.KeyOrMouse.GetHashCode ( )

◆ GetName()

LocalizedString Barotrauma.KeyOrMouse.GetName ( )

◆ IsDown()

bool Barotrauma.KeyOrMouse.IsDown ( )

Definition at line 55 of file BarotraumaClient/ClientSource/PlayerInput.cs.

◆ IsHit()

bool Barotrauma.KeyOrMouse.IsHit ( )

Definition at line 81 of file BarotraumaClient/ClientSource/PlayerInput.cs.

◆ operator KeyOrMouse() [1/2]

static implicit Barotrauma.KeyOrMouse.operator KeyOrMouse ( Keys  key)
static

Definition at line 40 of file BarotraumaClient/ClientSource/PlayerInput.cs.

◆ operator KeyOrMouse() [2/2]

static implicit Barotrauma.KeyOrMouse.operator KeyOrMouse ( MouseButton  mouseButton)
static

Definition at line 41 of file BarotraumaClient/ClientSource/PlayerInput.cs.

◆ operator!=() [1/5]

static bool Barotrauma.KeyOrMouse.operator!= ( KeyOrMouse  a,
KeyOrMouse  b 
)
static

◆ operator!=() [2/5]

static bool Barotrauma.KeyOrMouse.operator!= ( KeyOrMouse  keyOrMouse,
Keys  key 
)
static

◆ operator!=() [3/5]

static bool Barotrauma.KeyOrMouse.operator!= ( KeyOrMouse  keyOrMouse,
MouseButton  mb 
)
static

◆ operator!=() [4/5]

static bool Barotrauma.KeyOrMouse.operator!= ( Keys  key,
KeyOrMouse  keyOrMouse 
)
static

◆ operator!=() [5/5]

static bool Barotrauma.KeyOrMouse.operator!= ( MouseButton  mb,
KeyOrMouse  keyOrMouse 
)
static

◆ operator==() [1/5]

static bool Barotrauma.KeyOrMouse.operator== ( KeyOrMouse  a,
KeyOrMouse  b 
)
static

◆ operator==() [2/5]

static bool Barotrauma.KeyOrMouse.operator== ( KeyOrMouse  keyOrMouse,
Keys  key 
)
static

◆ operator==() [3/5]

static bool Barotrauma.KeyOrMouse.operator== ( KeyOrMouse  keyOrMouse,
MouseButton  mb 
)
static

◆ operator==() [4/5]

static bool Barotrauma.KeyOrMouse.operator== ( Keys  key,
KeyOrMouse  keyOrMouse 
)
static

◆ operator==() [5/5]

static bool Barotrauma.KeyOrMouse.operator== ( MouseButton  mb,
KeyOrMouse  keyOrMouse 
)
static

◆ ToString()

override string Barotrauma.KeyOrMouse.ToString ( )

Member Data Documentation

◆ Key

readonly Keys Barotrauma.KeyOrMouse.Key

Definition at line 25 of file BarotraumaClient/ClientSource/PlayerInput.cs.

Property Documentation

◆ MouseButton

MouseButton Barotrauma.KeyOrMouse.MouseButton
get

Definition at line 38 of file BarotraumaClient/ClientSource/PlayerInput.cs.

◆ Name

LocalizedString Barotrauma.KeyOrMouse.Name
get

Definition at line 29 of file BarotraumaClient/ClientSource/PlayerInput.cs.