LeapMotionDevice
Engine/source/platform/input/leapMotion/leapMotionDevice.h
Classes:
Protected Attributes
bool
Is the Leap Motion active.
void *
Used with the LM listener object.
Leap::Controller *
The connection to the Leap Motion.
mDataBuffer [2]
Buffer to store data Leap Motion data in a Torque friendly way.
Our Leap Motion listener class.
Points to the buffers that holds the previously collected data.
Public Static Attributes
LM_HANDPOINTABLE [LeapMotionConstants::MaxHands][LeapMotionConstants::MaxPointablesPerHand]
LM_HANDPOINTABLEROT [LeapMotionConstants::MaxHands][LeapMotionConstants::MaxPointablesPerHand]
LM_HANDROT [LeapMotionConstants::MaxHands]
bool
Protected Functions
Build out the codes used for controller actions with the Input Event Manager.
Public Static Functions
const char *
Detailed Description
Protected Attributes
bool mActive
Is the Leap Motion active.
void * mActiveMutex
Used with the LM listener object.
Leap::Controller * mController
The connection to the Leap Motion.
LeapMotionDeviceData * mDataBuffer [2]
Buffer to store data Leap Motion data in a Torque friendly way.
MotionListener * mListener
Our Leap Motion listener class.
LeapMotionDeviceData * mPrevData
Points to the buffers that holds the previously collected data.
Public Static Attributes
U32 LM_FRAME
U32 LM_FRAMEVALIDDATA
U32 LM_HAND [LeapMotionConstants::MaxHands]
U32 LM_HANDAXISX
U32 LM_HANDAXISY
U32 LM_HANDPOINTABLE [LeapMotionConstants::MaxHands][LeapMotionConstants::MaxPointablesPerHand]
U32 LM_HANDPOINTABLEROT [LeapMotionConstants::MaxHands][LeapMotionConstants::MaxPointablesPerHand]
U32 LM_HANDROT [LeapMotionConstants::MaxHands]
bool smEnableDevice
bool smGenerateIndividualEvents
bool smGenerateSingleHandRotationAsAxisEvents
bool smGenerateWholeFrameEvents
bool smKeepHandIndexPersistent
bool smKeepPointableIndexPersistent
F32 smMaximumHandAxisAngle
Protected Functions
buildCodeTable()
Build out the codes used for controller actions with the Input Event Manager.
Public Functions
LeapMotionDevice()
~LeapMotionDevice()
disable()
enable()
getActive()
process()
Reimplemented from: IInputDevice
setActive(bool state)