SOFA API  6a688117
Open source framework for multi-physics simuation
sofa::core::objectmodel::KeyreleasedEvent Class Reference

#include <KeyreleasedEvent.h>

This event is propagated along the objects when a key on the keyboard is released. More...

Inheritance diagram for sofa::core::objectmodel::KeyreleasedEvent:

Detailed Description

This event is propagated along the objects when a key on the keyboard is released.

Author
Juan Pablo de la Plata

Protected Attributes

char m_char
 Store the key. More...
 
- Protected Attributes inherited from sofa::core::objectmodel::Event
bool m_handled
 

Public Member Functions

 KeyreleasedEvent (char)
 Constructor. More...
 
 ~KeyreleasedEvent () override
 Destructor. More...
 
char getKey () const
 Return the key released. More...
 
- Public Member Functions inherited from sofa::core::objectmodel::Event
 Event ()
 
virtual ~Event ()
 
void setHandled ()
 Tag the event as handled, i.e. the event needs not be propagated further. More...
 
bool isHandled () const
 Returns true of the event has been handled. More...
 
virtual const char * getClassName () const
 
virtual size_t getEventTypeIndex () const =0
 

Static Public Member Functions

static const char * GetClassName ()
 
- Static Public Member Functions inherited from sofa::core::objectmodel::Event
static const char * GetClassName ()
 
static size_t getEventTypeCount ()
 

Additional Inherited Members

- Static Protected Attributes inherited from sofa::core::objectmodel::Event
static size_t s_lastEventTypeIndex = 0
 storing the last given id More...
 

Attribute details

char sofa::core::objectmodel::KeyreleasedEvent::m_char
protected

Store the key.

Constructor details

sofa::core::objectmodel::KeyreleasedEvent::KeyreleasedEvent ( char  c)

Constructor.

sofa::core::objectmodel::KeyreleasedEvent::~KeyreleasedEvent ( )
override

Destructor.

Function details

static const char* sofa::core::objectmodel::KeyreleasedEvent::GetClassName ( )
inlinestatic
char sofa::core::objectmodel::KeyreleasedEvent::getKey ( ) const

Return the key released.