16 #ifndef SURGSIM_BLOCKS_SINGLEKEYBEHAVIOR_H 17 #define SURGSIM_BLOCKS_SINGLEKEYBEHAVIOR_H 45 bool doWakeUp()
override;
55 void setDescription(
const std::string& description);
57 virtual void onKey() = 0;
59 void onKeyDown(
int actualKey)
override;
61 void onKeyUp(
int actualKey)
override;
74 #endif // SURGSIM_BLOCKS_SINGLEKEYBEHAVIOR_H std::shared_ptr< Input::InputComponent > m_inputComponent
Definition: SingleKeyBehavior.h:63
Definition: CompoundShapeToGraphics.cpp:29
std::string m_description
Definition: SingleKeyBehavior.h:68
int m_actionKey
Registered key to trigger action.
Definition: SingleKeyBehavior.h:66
Behavior to abstract the functionality of keyboard driven behaviors, can be programmed to react to a ...
Definition: SingleKeyBehavior.h:36
Behavior to abstract the functionality of keyboard driven behaviors, can be programmed to react to a ...
Definition: KeyBehavior.h:36