Go to the documentation of this file.
16 #ifndef SURGSIM_BLOCKS_SINGLEKEYBEHAVIOR_H
17 #define SURGSIM_BLOCKS_SINGLEKEYBEHAVIOR_H
61 void onKeyUp(
int actualKey)
override;
74 #endif // SURGSIM_BLOCKS_SINGLEKEYBEHAVIOR_H
void onKeyDown(int actualKey) override
Implement to execute functionality on key press.
Definition: SingleKeyBehavior.cpp:62
void setDescription(const std::string &description)
Definition: SingleKeyBehavior.cpp:57
std::shared_ptr< Input::InputComponent > m_inputComponent
Definition: SingleKeyBehavior.h:63
Definition: CompoundShapeToGraphics.cpp:30
Behavior to abstract the functionality of keyboard driven behaviors, can be programmed to react to a ...
Definition: KeyBehavior.h:37
bool doWakeUp() override
Interface to be implemented by derived classes.
Definition: SingleKeyBehavior.cpp:42
void setKey(int val)
Sets the current key value used to trigger this behavior.
Definition: SingleKeyBehavior.cpp:75
int getKey() const
Definition: SingleKeyBehavior.cpp:52
void onKeyUp(int actualKey) override
Implement to execute functionality on key release.
Definition: SingleKeyBehavior.cpp:70
~SingleKeyBehavior()
Destructor.
Definition: SingleKeyBehavior.cpp:38
SingleKeyBehavior(const std::string &name)
Constructor.
Definition: SingleKeyBehavior.cpp:30
int m_actionKey
Registered key to trigger action.
Definition: SingleKeyBehavior.h:66
string(TOUPPER ${DEVICE} DEVICE_UPPER_CASE) option(BUILD_DEVICE_$
Definition: CMakeLists.txt:38
std::string m_description
Definition: SingleKeyBehavior.h:68
Behavior to abstract the functionality of keyboard driven behaviors, can be programmed to react to a ...
Definition: SingleKeyBehavior.h:37