9 #include "imstkDeviceControl.h" 10 #include "imstkMacros.h" 14 class KeyboardDeviceClient;
31 void setDevice(std::shared_ptr<DeviceClient> device)
override;
34 virtual void OnKeyPress(
const char imstkNotUsed(key)) { }
36 virtual void OnKeyRelease(
const char imstkNotUsed(key)) { }
While the DeviceClient provides quantities from the device, the control defines what to do with those...
virtual void keyReleaseEvent(KeyEvent *e)
Recieves key release event.
Provides the information of a key event (press, release, & which key)
virtual void keyPressEvent(KeyEvent *e)
Recieves key press event.