TabletCallback Class Reference

TabletCallback Class Reference

#include <ITabletInterface.h>

Public Member Functions

virtual ~TabletCallback ()
 
virtual void Event ()
 

Constructor & Destructor Documentation

virtual ~TabletCallback ( )
inlinevirtual
Remarks
The default destructor automatically unregisters this callback, if not already unregistered. Plugins should always unregister a tablet callback when they are done using the tablet. This is a safety measure to be sure the TabletCallback is unregistered before it is destroyed, preventing a dangling pointer to the destroyed object.
131 { (dynamic_cast<TabletManager*>(GetCOREInterface(TabletManagerInterfaceID)))->UnregisterTabletCallback(this); }
#define TabletManagerInterfaceID
Definition: ITabletInterface.h:120
Definition: ITabletInterface.h:29
CoreExport Interface * GetCOREInterface()

Member Function Documentation

virtual void Event ( )
inlinevirtual
Remarks
This method is called whenever a tablet event is detected. All attributes of the event are available via the TabletManager's access methods. When plugins receive this callback, they can query the TabletManager as desired to retrieve more information about the tablet event.
See also
TabletManager::GetPenDown, TabletManager::GetPressure, TabletManager::GetRotation, TabletManager::GetTangentialPressure, TabletManager::GetX, TabletManager::GetY, TabletManager::GetZ, TabletManager::GetXTilt, TabletManager::GetYTilt, TabletManager::GetPointerType.
138 {};