Dragonfly 4.20
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

Public Member Functions

virtual void setKey (Keyboard::Key new_key)
 
virtual Keyboard::Key getKey () const
 
virtual void setKeyboardAction (EventKeyboardAction new_action)
 
virtual 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

◆ getKey()

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

Get key from event.

◆ getKeyboardAction()

virtual EventKeyboardAction df::EventKeyboard::getKeyboardAction ( ) const
virtual

Get keyboard event action.

◆ setKey()

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

Set key in event.

◆ setKeyboardAction()

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

Set keyboard event action.

Member Data Documentation

◆ m_key_val

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

Key value.

◆ m_keyboard_action

EventKeyboardAction df::EventKeyboard::m_keyboard_action
private

Key action.