Use these functions to enable any tracker target to emulate a mouse.
List of Functions |
|
void | ZSCore::SetMouseEmulationEnabled (bool isMouseEmulationEnabled) |
Set whether mouse emulation is enabled. |
|
bool | ZSCore::IsMouseEmulationEnabled () |
Check whether mouse emulation is enabled. |
|
void | ZSCore::SetMouseEmulationTarget (TrackerTargetType trackerTargetType) |
Specify the tracker target that will emulate the mouse. |
|
void | ZSCore::SetMouseEmulationMovementMode (MouseMovementMode movementMode) |
Set the movement mode for mouse emulation. |
|
MouseMovementMode | ZSCore::GetMouseEmulationMovementMode () |
Get the movement mode of mouse emulation. Refer to MouseMovementMode for details. |
|
void | ZSCore::SetMouseEmulationDistance (float mouseEmulationDistance) |
Set the distance at which mouse emulation will be enabled. |
|
float | ZSCore::GetMouseEmulationDistance () |
Get the distance at which mouse emulation will be enabled. |
|
void | ZSCore::SetMouseEmulationButtonMapping (int buttonId, MouseButton mouseButton) |
Map a specified tracker target button to a mouse button. |
|
MouseButton | ZSCore::GetMouseEmulationButtonMapping (int buttonId) |
Get the mouse button that the specified button ID is mapped to. |
|
List of Enumerations |
|
enum | ZSCore::MouseMovementMode { ZSCore::Absolute = 0, ZSCore::Relative = 1 } |
enum | ZSCore::MouseButton { ZSCore::Unknown = -1, ZSCore::Left = 0, ZSCore::Right = 1, ZSCore::Center = 2 } |
List of Variables |
|
bool | ZSCore::EnableMouseEmulation = false |
Get the mouse button that the specified button ID is mapped to.
buttonId | Tracker target button ID. |
Get the distance at which mouse emulation will be enabled.
Get the movement mode of mouse emulation. Refer to MouseMovementMode for details.
Check whether mouse emulation is enabled.
void ZSCore:: SetMouseEmulationButtonMapping | ( | int | buttonId, |
MouseButton | mouseButton | ||
) | [inline]
|
Map a specified tracker target button to a mouse button.
buttonId | Tracker target button ID. |
mouseButton | Mouse button. |
Set the distance at which mouse emulation will be enabled.
mouseEmulationDistance | The mouse emulation distance. |
Set whether mouse emulation is enabled.
isMouseEmulationEnabled | True to enable mouse emulation. False if not. |
void ZSCore:: SetMouseEmulationMovementMode | ( | MouseMovementMode | movementMode | ) | [inline]
|
Set the movement mode for mouse emulation.
movementMode | Movement is either absolute or relative to the mouse's current position. |
void ZSCore:: SetMouseEmulationTarget | ( | TrackerTargetType | trackerTargetType | ) | [inline]
|
Specify the tracker target that will emulate the mouse.
trackerTargetType | The type of tracker target. |
enum ZSCore::MouseButton |
enum ZSCore::MouseMovementMode |
Determines how the stylus and mouse control the cursor when both are used.
bool ZSCore::EnableMouseEmulation = false |
Whether mouse emulation is enabled.