Dragonfly  4.3
A text-based game engine
Public Member Functions | Private Attributes | List of all members
df::EventKeyboard Class Reference
Inheritance diagram for df::EventKeyboard:
Inheritance graph
[legend]
Collaboration diagram for df::EventKeyboard:
Collaboration graph
[legend]

Public Member Functions

void setKey (Keyboard::Key new_key)
 
Keyboard::Key getKey () const
 
void setKeyboardAction (EventKeyboardAction new_action)
 
EventKeyboardAction getKeyboardAction () const
 
- Public Member Functions inherited from df::Event
 Event ()
 
virtual ~Event ()
 
void setType (std::string new_type)
 
std::string getType () const
 

Private Attributes

Keyboard::Key m_key_val
 
EventKeyboardAction m_keyboard_action
 

Member Function Documentation

Keyboard::Key df::EventKeyboard::getKey ( ) const

Get key from event.

EventKeyboardAction df::EventKeyboard::getKeyboardAction ( ) const

Get keyboard event action.

void df::EventKeyboard::setKey ( Keyboard::Key  new_key)

Set key in event.

void df::EventKeyboard::setKeyboardAction ( EventKeyboardAction  new_action)

Set keyboard event action.

Member Data Documentation

Keyboard::Key df::EventKeyboard::m_key_val
private

Key value.

EventKeyboardAction df::EventKeyboard::m_keyboard_action
private

Key action.