ProtoZed  awesome branch
A simple but powerful game framework
Classes | Public Member Functions | List of all members
PZ::Input Class Referenceabstract
Inheritance diagram for PZ::Input:
PZ::System PZ::NonCopyable PZ::EventHandler

Classes

class  MouseButtonEvent
 
class  MouseMoveEvent
 

Public Member Functions

 Input (const SystemType &type, Application &application)
 
virtual ~Input ()
 
virtual void Update (float deltaTime)=0
 Runs an update.
 
virtual bool IsKeyDown (Key::Code keyCode) const =0
 
virtual float GetMouseX () const =0
 
virtual float GetMouseY () const =0
 
virtual bool IsMouseButtonDown (Mouse::Button button) const =0
 
virtual float GetJoystickAxis (unsigned int joyId, Joy::Axis axis) const =0
 
virtual bool IsJoystickButtonDown (unsigned int joyId, unsigned int button) const =0
 
- Public Member Functions inherited from PZ::System
 System (const SystemType &type, Application &application)
 
virtual ~System ()
 
virtual bool Start ()
 Starts the system.
 
virtual bool Stop ()
 Stops the system.
 
const SystemTypeGetType () const
 Gets the type.
 
bool IsStarted () const
 
- Public Member Functions inherited from PZ::EventHandler
 EventHandler ()
 
virtual ~EventHandler ()
 
bool SubscribeTo (EventHandler &handler)
 
bool UnsubscribeTo (EventHandler &handler)
 
template<class T , class EventT >
bool RegisterEvent (T *obj, void(T::*memFn)(EventT &))
 
template<class T , class EventT >
bool UnregisterEvent (T *obj, void(T::*memFn)(EventT &))
 
void HandleEvent (const Event &e)
 
void EmitEvent (const Event &e) const
 

Additional Inherited Members

- Protected Member Functions inherited from PZ::System
ApplicationGetApplication () const
 

Constructor & Destructor Documentation

PZ::Input::Input ( const SystemType type,
Application application 
)
inline
virtual PZ::Input::~Input ( )
inlinevirtual

Member Function Documentation

virtual float PZ::Input::GetJoystickAxis ( unsigned int  joyId,
Joy::Axis  axis 
) const
pure virtual
virtual float PZ::Input::GetMouseX ( ) const
pure virtual
virtual float PZ::Input::GetMouseY ( ) const
pure virtual
virtual bool PZ::Input::IsJoystickButtonDown ( unsigned int  joyId,
unsigned int  button 
) const
pure virtual
virtual bool PZ::Input::IsKeyDown ( Key::Code  keyCode) const
pure virtual
virtual bool PZ::Input::IsMouseButtonDown ( Mouse::Button  button) const
pure virtual
virtual void PZ::Input::Update ( float  deltaTime)
pure virtual

Runs an update.

Parameters
deltaTimeTime since the last frame.

Implements PZ::System.


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