EHS
ehs::HID Class Reference

#include <HID.h>

Inheritance diagram for ehs::HID:
ehs::Keyboard ehs::Mouse

Public Member Functions

 HID ()
 
 HID (UInt_8 type, Str_8 name, UInt_64 id)
 
 HID (HID &&hid) noexcept
 
 HID (const HID &hid)
 
HIDoperator= (HID &&hid) noexcept
 
HIDoperator= (const HID &hid)
 
bool operator== (const HID &other) const
 
bool operator!= (const HID &other) const
 
bool operator== (UInt_64 otherId) const
 
bool operator!= (UInt_64 otherId) const
 
virtual void Poll (float delta)
 
UInt_8 GetType () const
 
Str_8 GetName () const
 
UInt_64 GetId () const
 
void ReleaseAll ()
 
Vector< const ButtonState * > GetAllTouched () const
 
const ButtonStateIsTouched (const Button &button) const
 
const ButtonStateIsTouched () const
 
Vector< const ButtonState * > GetAllDown () const
 
const ButtonStateIsDown (const Button &button) const
 
const ButtonStateIsDown () const
 
Vector< const ButtonState * > GetAllJustReleased () const
 
const ButtonStateIsJustReleased (const Button &button) const
 
const ButtonStateIsJustReleased () const
 
Vector< const ButtonState * > GetAllUp () const
 
const ButtonStateIsUp (const Button &button) const
 
const ButtonStateIsUp () const
 
const ButtonStateIsPressed (const Button &button)
 
const ButtonStateGetPressed ()
 
void ButtonDown (const Button &button)
 
void ButtonUp (const Button &button)
 
const ButtonStateGetState (const Button &button) const
 
bool IsValid () const
 
virtual HIDClone () const
 

Protected Attributes

UInt_8 type
 
UInt_64 hashName
 
Str_8 name
 
UInt_64 id
 
Array< ButtonStatestates
 
Button lastState
 
float heldTime
 
float activateTime
 
bool active
 

Constructor & Destructor Documentation

◆ HID() [1/4]

ehs::HID::HID ( )

◆ HID() [2/4]

ehs::HID::HID ( UInt_8  type,
Str_8  name,
UInt_64  id 
)

◆ HID() [3/4]

ehs::HID::HID ( HID &&  hid)
noexcept

◆ HID() [4/4]

ehs::HID::HID ( const HID hid)

Member Function Documentation

◆ ButtonDown()

void ehs::HID::ButtonDown ( const Button button)

◆ ButtonUp()

void ehs::HID::ButtonUp ( const Button button)

◆ Clone()

HID * ehs::HID::Clone ( ) const
virtual

Reimplemented in ehs::Keyboard, and ehs::Mouse.

◆ GetAllDown()

Vector< const ButtonState * > ehs::HID::GetAllDown ( ) const

◆ GetAllJustReleased()

Vector< const ButtonState * > ehs::HID::GetAllJustReleased ( ) const

◆ GetAllTouched()

Vector< const ButtonState * > ehs::HID::GetAllTouched ( ) const

◆ GetAllUp()

Vector< const ButtonState * > ehs::HID::GetAllUp ( ) const

◆ GetId()

UInt_64 ehs::HID::GetId ( ) const

◆ GetName()

Str_8 ehs::HID::GetName ( ) const

◆ GetPressed()

const ButtonState * ehs::HID::GetPressed ( )

◆ GetState()

const ButtonState * ehs::HID::GetState ( const Button button) const

◆ GetType()

UInt_8 ehs::HID::GetType ( ) const

◆ IsDown() [1/2]

const ButtonState * ehs::HID::IsDown ( ) const

◆ IsDown() [2/2]

const ButtonState * ehs::HID::IsDown ( const Button button) const

◆ IsJustReleased() [1/2]

const ButtonState * ehs::HID::IsJustReleased ( ) const

◆ IsJustReleased() [2/2]

const ButtonState * ehs::HID::IsJustReleased ( const Button button) const

◆ IsPressed()

const ButtonState * ehs::HID::IsPressed ( const Button button)

◆ IsTouched() [1/2]

const ButtonState * ehs::HID::IsTouched ( ) const

◆ IsTouched() [2/2]

const ButtonState * ehs::HID::IsTouched ( const Button button) const

◆ IsUp() [1/2]

const ButtonState * ehs::HID::IsUp ( ) const

◆ IsUp() [2/2]

const ButtonState * ehs::HID::IsUp ( const Button button) const

◆ IsValid()

bool ehs::HID::IsValid ( ) const

◆ operator!=() [1/2]

bool ehs::HID::operator!= ( const HID other) const

◆ operator!=() [2/2]

bool ehs::HID::operator!= ( UInt_64  otherId) const

◆ operator=() [1/2]

HID & ehs::HID::operator= ( const HID hid)

◆ operator=() [2/2]

HID & ehs::HID::operator= ( HID &&  hid)
noexcept

◆ operator==() [1/2]

bool ehs::HID::operator== ( const HID other) const

◆ operator==() [2/2]

bool ehs::HID::operator== ( UInt_64  otherId) const

◆ Poll()

void ehs::HID::Poll ( float  delta)
virtual

Reimplemented in ehs::Keyboard, and ehs::Mouse.

◆ ReleaseAll()

void ehs::HID::ReleaseAll ( )

Member Data Documentation

◆ activateTime

float ehs::HID::activateTime
protected

◆ active

bool ehs::HID::active
protected

◆ hashName

UInt_64 ehs::HID::hashName
protected

◆ heldTime

float ehs::HID::heldTime
protected

◆ id

UInt_64 ehs::HID::id
protected

◆ lastState

Button ehs::HID::lastState
protected

◆ name

Str_8 ehs::HID::name
protected

◆ states

Array<ButtonState> ehs::HID::states
protected

◆ type

UInt_8 ehs::HID::type
protected

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