Gets an event that is fired when a key on the keyboard is pressed down.
-------- Import ---------
-------- Global variables ---------
-------- Connect the handler to the event. ---------
-------- Event handler function definition ---------
|
-------- Global variables ---------
-------- Connect the handler to the event. ---------
-------- Event handler class definition ---------
|
--------- Required include files. ---------
--------- Event handler class definition and global declaration. ---------
class MyKeyDownEventHandler : public adsk::core::KeyboardEventHandler { public: void notify(const Ptr<KeyboardEventArgs>& eventArgs) override { // Code to react to the event. ui->messageBox("In MyKeyDownEventHandler event handler."); } } _keyDown; --------- Connect the handler to the event. ---------
|