virtual void onDeviceDisconnected(SPDEVICE device, GF_UINT8 reason)
This callback is called when a device has been disconnected from connection state or failed to connec...
Definition: HubListener.h:97
DeviceDataType
Define the data types the device do support.
Definition: gfTypes.h:214
gfsPtr< Device > SPDEVICE
the strong pointer to Device
Definition: gfTypes.h:119
virtual void onScanFinished()
This callback is called when the Hub finishes scanning devices.
Definition: HubListener.h:62
The callback interface for processing messages from the Hub.
Definition: HubListener.h:55
virtual void onGestureData(SPDEVICE device, Gesture gest)
This callback is called when the gesture data is recevied.
Definition: HubListener.h:112
Data type of quaternion.
Definition: Quaternion.h:101
virtual void onDeviceDiscard(SPDEVICE device)
This callback is called when a previously found but not connected device has been dropped by the Hub...
Definition: HubListener.h:82
virtual void onOrientationData(SPDEVICE device, const Quaternion &orientation)
This callback is called when the orientation of the device has changed.
Definition: HubListener.h:107
Gesture
Gesture types predefined in the gForce device.
Definition: gfTypes.h:163
HubState
Possible Hub states.
Definition: gfTypes.h:195
The namespace in which all of the gForceSDK project definitions are contained.
Definition: Device.h:42
DeviceStatus
Device status notification of a gForce device.
Definition: gfTypes.h:185
std::shared_ptr< T > gfsPtr
The strong pointer.
Definition: gfTypes.h:113
virtual void onDeviceStatusChanged(SPDEVICE device, DeviceStatus status)
This callback is called when the device status has been changed.
Definition: HubListener.h:126
virtual void onDeviceConnected(SPDEVICE device)
This callback is called when a device has been connected to the hub successfully. ...
Definition: HubListener.h:89
virtual void onExtendedDeviceData(SPDEVICE device, DeviceDataType dataType, gfsPtr< const std::vector< GF_UINT8 >> data)
This callback is called when the extended data is recevied.
Definition: HubListener.h:132
virtual void onStateChanged(HubState state)
This callback is called when the state of the hub changed.
Definition: HubListener.h:68
The basic type definitions using in gForceSDK.
virtual void onDeviceFound(SPDEVICE device)
This callback is called when the hub finds a device during scanning.
Definition: HubListener.h:74
unsigned char GF_UINT8
type definition
Definition: gfTypes.h:65