KeyboardEvent.add Method

Parent Object: KeyboardEvent
Defined in namespace "adsk::core" and the header file is <Core/UserInterface/KeyboardEvent.h>

Description

Adds an event handler to this event endpoint.

Syntax

"keyboardEvent_var" is a variable referencing a KeyboardEvent object.
returnValue = keyboardEvent_var.add(handler)
"keyboardEvent_var" is a variable referencing a KeyboardEvent object.

#include <Core/UserInterface/KeyboardEvent.h>

returnValue = keyboardEvent_var->add(handler);

Return Value

Type Description
boolean Returns true if the handler was successfully added to the set of event handlers.

Parameters

Name Type Description
handler KeyboardEventHandler The client implemented KeyboardEventHandler to be called when this event is triggered.

Version

Introduced in version August 2014