GlPortal Class Reference  0.1.1
Source code documentation of the free and open 3D action puzzle game.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Data Structures | Public Types | Public Member Functions | Protected Attributes
radix::InputSource Class Referenceabstract

#include <external/RadixEngine/include/radix/input/InputSource.hpp>

Inherited by radix::NullInputSource, and radix::Window.

Data Structures

struct  KeyPressedEvent
 
struct  KeyReleasedEvent
 
struct  MouseButtonPressedEvent
 
struct  MouseButtonReleasedEvent
 
struct  MouseWheelScrolledEvent
 
struct  WindowCloseEvent
 
struct  WindowEnterEvent
 
struct  WindowExposedEvent
 
struct  WindowFocusGainedEvent
 
struct  WindowFocusLostEvent
 
struct  WindowHiddenEvent
 
struct  WindowLeaveEvent
 
struct  WindowMaximizedEvent
 
struct  WindowMinimizedEvent
 
struct  WindowMovedEvent
 
struct  WindowResizedEvent
 
struct  WindowRestoredEvent
 
struct  WindowShownEvent
 
struct  WindowSizeChangedEvent
 

Public Types

enum  MouseButton : uint8_t {
  MouseButton::Left = 0, MouseButton::Right = 1, MouseButton::Middle = 2, MouseButton::Aux1,
  MouseButton::Aux2, MouseButton::Aux3, MouseButton::Aux4, MouseButton::Aux5,
  MouseButton::Aux6, MouseButton::Aux7, MouseButton::Aux8, MouseButton::Unknown = 0xFF
}
 
using KeyboardKey = int
 
using KeyboardModifier = int
 

Public Member Functions

void addDispatcher (EventDispatcher &d)
 
void removeDispatcher (EventDispatcher &d)
 
virtual void processEvents ()=0
 
virtual void keyPressed (KeyboardKey key, KeyboardModifier mod)=0
 
virtual void keyReleased (KeyboardKey key, KeyboardModifier mod)=0
 
virtual bool isKeyDown (KeyboardKey key)=0
 
virtual std::string getCharBuffer ()=0
 
virtual void addToBuffer (const std::string &character)=0
 
virtual void clearBuffer ()=0
 
virtual void truncateCharBuffer ()=0
 
virtual void clear ()=0
 

Protected Attributes

std::vector
< std::reference_wrapper
< EventDispatcher > > 
dispatchers
 

Member Typedef Documentation

Member Enumeration Documentation

enum radix::InputSource::MouseButton : uint8_t
strong
Enumerator
Left 
Right 
Middle 
Aux1 
Aux2 
Aux3 
Aux4 
Aux5 
Aux6 
Aux7 
Aux8 
Unknown 

Member Function Documentation

void radix::InputSource::addDispatcher ( EventDispatcher d)
inline
virtual void radix::InputSource::addToBuffer ( const std::string &  character)
pure virtual

Implemented in radix::Window, and radix::NullInputSource.

virtual void radix::InputSource::clear ( )
pure virtual

Implemented in radix::Window, and radix::NullInputSource.

virtual void radix::InputSource::clearBuffer ( )
pure virtual

Implemented in radix::Window, and radix::NullInputSource.

virtual std::string radix::InputSource::getCharBuffer ( )
pure virtual

Implemented in radix::Window, and radix::NullInputSource.

virtual bool radix::InputSource::isKeyDown ( KeyboardKey  key)
pure virtual

Implemented in radix::Window, and radix::NullInputSource.

virtual void radix::InputSource::keyPressed ( KeyboardKey  key,
KeyboardModifier  mod 
)
pure virtual

Implemented in radix::Window, and radix::NullInputSource.

virtual void radix::InputSource::keyReleased ( KeyboardKey  key,
KeyboardModifier  mod 
)
pure virtual

Implemented in radix::Window, and radix::NullInputSource.

virtual void radix::InputSource::processEvents ( )
pure virtual

Implemented in radix::Window, and radix::NullInputSource.

void radix::InputSource::removeDispatcher ( EventDispatcher d)
virtual void radix::InputSource::truncateCharBuffer ( )
pure virtual

Implemented in radix::Window, and radix::NullInputSource.

Field Documentation

std::vector<std::reference_wrapper<EventDispatcher> > radix::InputSource::dispatchers
protected

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