Public Member Functions | Protected Attributes | Friends | List of all members
ion::CGamePad Class Reference

#include <CGamePad.h>

Inheritance diagram for ion::CGamePad:
Inheritance graph
[legend]
Collaboration diagram for ion::CGamePad:
Collaboration graph
[legend]

Public Member Functions

vec2f const & GetLeftStick () const
 
vec2f const & GetRightStick () const
 
float GetLeftTrigger () const
 
float GetRightTrigger () const
 
bool IsButtonPressed (EGamePadButton const Button)
 
void UpdateState ()
 
- Public Member Functions inherited from IEventListener
virtual void OnEvent (IEvent &Event)
 
void AddListener (IEventListener *Listener)
 
void RemoveListener (IEventListener *Listener)
 
void TriggerEvent (IEvent &Event)
 
- Public Member Functions inherited from ion::IMultiTreeNode< IEventListener >
set< IEventListener * > const & GetChildren () const
 
void AddChild (IEventListener *Child)
 
void RemoveChild (IEventListener *Child)
 
void RemoveAllChildren ()
 
void RecurseOnChildren (Return(IEventListener::*Function)())
 
void RecurseOnChildren (Return(IEventListener::*Function)(P1), P1 p1)
 
void RecurseOnChildren (Return(IEventListener::*Function)(P1, P2), P1 p1, P2 p2)
 

Protected Attributes

vec2f LeftStick
 
vec2f RightStick
 
float LeftTrigger
 
float RightTrigger
 
bool ButtonPressed [(int) EGamePadButton::Count]
 
- Protected Attributes inherited from ion::IMultiTreeNode< IEventListener >
set< IEventListener * > Children
 

Friends

class Singleton< CGamePad >
 

Additional Inherited Members

- Static Public Member Functions inherited from ion::Singleton< CGamePad >
static CGamePadGet ()
 
static CGamePadGetPointer ()
 
- Protected Member Functions inherited from ion::IMultiTreeNode< IEventListener >
 IMultiTreeNode ()
 
- Protected Member Functions inherited from ion::Singleton< CGamePad >
 Singleton ()
 

Member Function Documentation

vec2f const & ion::CGamePad::GetLeftStick ( ) const
float ion::CGamePad::GetLeftTrigger ( ) const
vec2f const & ion::CGamePad::GetRightStick ( ) const
float ion::CGamePad::GetRightTrigger ( ) const
bool ion::CGamePad::IsButtonPressed ( EGamePadButton const  Button)
void ion::CGamePad::UpdateState ( )

Friends And Related Function Documentation

friend class Singleton< CGamePad >
friend

Member Data Documentation

bool ion::CGamePad::ButtonPressed[(int) EGamePadButton::Count]
protected
vec2f ion::CGamePad::LeftStick
protected
float ion::CGamePad::LeftTrigger
protected
vec2f ion::CGamePad::RightStick
protected
float ion::CGamePad::RightTrigger
protected

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