![]() |
CybSDK Python
4.3
|
Main interface all Virtualizer Devices have to implement. More...
Public Member Functions | |
bool | Open (self) |
Opens the connection to the Virtualizer device. More... | |
bool | IsOpen (self) |
Checks if the connection was opened before. More... | |
bool | Close (self) |
Closes the connection to the Virtualizer device. More... | |
VirtDeviceInfo | GetDeviceInfo (self) |
Returns the USB infos of this device. More... | |
float | GetPlayerHeight (self) |
Returns the current player height relative to the default height. More... | |
def | ResetPlayerHeight (self) |
Assigns the current height to the default height. More... | |
float | GetPlayerOrientation (self) |
Returns the orientation of the player as an absolute value. More... | |
def | ResetPlayerOrientation (self) |
Assigns the current orientation to the default vector. More... | |
float | GetMovementSpeed (self) |
Returns the current movement speed in meters per second. More... | |
float | GetMovementDirection (self) |
Returns the movement direction relative to the current player orientation. More... | |
bool | HasHaptic (self) |
Checks if the Virtualizer device supports haptic feedback. More... | |
def | HapticPlay (self) |
Play a signal on the haptic unit. More... | |
def | HapticStop (self) |
Stop the haptic unit. More... | |
def | HapticSetGain (self, int gain) |
Set the gain (dB) level of the haptic unit. More... | |
def | HapticSetFrequency (self, int frequency) |
Set the frequency (Hz) of a sine wave on the haptic unit. More... | |
def | HapticSetVolume (self, int volume) |
Sets the haptic feedback (change of amplitude) in the baseplate. More... | |
Main interface all Virtualizer Devices have to implement.
Main interface all Virtualizer Devices have to implement.
bool cybsdk.IVirtDevice.IVirtDevice.Open | ( | self | ) |
Opens the connection to the Virtualizer device.
Opens the connection to the Virtualizer device.
Reimplemented in cybsdk._VirtDevice.VirtDevice.
bool cybsdk.IVirtDevice.IVirtDevice.IsOpen | ( | self | ) |
Checks if the connection was opened before.
Checks if the connection was opened before.
Reimplemented in cybsdk._VirtDevice.VirtDevice.
bool cybsdk.IVirtDevice.IVirtDevice.Close | ( | self | ) |
Closes the connection to the Virtualizer device.
Closes the connection to the Virtualizer device.
Reimplemented in cybsdk._VirtDevice.VirtDevice.
VirtDeviceInfo cybsdk.IVirtDevice.IVirtDevice.GetDeviceInfo | ( | self | ) |
Returns the USB infos of this device.
Returns the USB infos of this device.
Reimplemented in cybsdk._VirtDevice.VirtDevice.
float cybsdk.IVirtDevice.IVirtDevice.GetPlayerHeight | ( | self | ) |
Returns the current player height relative to the default height.
Returns the current player height relative to the default height.
Reimplemented in cybsdk._VirtDevice.VirtDevice.
def cybsdk.IVirtDevice.IVirtDevice.ResetPlayerHeight | ( | self | ) |
Assigns the current height to the default height.
Assigns the current height to the default height.
Reimplemented in cybsdk._VirtDevice.VirtDevice.
float cybsdk.IVirtDevice.IVirtDevice.GetPlayerOrientation | ( | self | ) |
Returns the orientation of the player as an absolute value.
Returns the orientation of the player as an absolute value.
Reimplemented in cybsdk._VirtDevice.VirtDevice.
def cybsdk.IVirtDevice.IVirtDevice.ResetPlayerOrientation | ( | self | ) |
Assigns the current orientation to the default vector.
Assigns the current orientation to the default vector.
Reimplemented in cybsdk._VirtDevice.VirtDevice.
float cybsdk.IVirtDevice.IVirtDevice.GetMovementSpeed | ( | self | ) |
Returns the current movement speed in meters per second.
Returns the current movement speed in meters per second.
Reimplemented in cybsdk._VirtDevice.VirtDevice.
float cybsdk.IVirtDevice.IVirtDevice.GetMovementDirection | ( | self | ) |
Returns the movement direction relative to the current player orientation.
Returns the movement direction relative to the current player orientation.
Reimplemented in cybsdk._VirtDevice.VirtDevice.
bool cybsdk.IVirtDevice.IVirtDevice.HasHaptic | ( | self | ) |
Checks if the Virtualizer device supports haptic feedback.
Checks if the Virtualizer device supports haptic feedback.
Reimplemented in cybsdk._VirtDevice.VirtDevice.
def cybsdk.IVirtDevice.IVirtDevice.HapticPlay | ( | self | ) |
Play a signal on the haptic unit.
Play a signal on the haptic unit.
Reimplemented in cybsdk._VirtDevice.VirtDevice.
def cybsdk.IVirtDevice.IVirtDevice.HapticStop | ( | self | ) |
def cybsdk.IVirtDevice.IVirtDevice.HapticSetGain | ( | self, | |
int | gain | ||
) |
Set the gain (dB) level of the haptic unit.
gain | The value can be 0, 1, 2 or 3. Set the gain (dB) level of the haptic unit. |
Reimplemented in cybsdk._VirtDevice.VirtDevice.
def cybsdk.IVirtDevice.IVirtDevice.HapticSetFrequency | ( | self, | |
int | frequency | ||
) |
Set the frequency (Hz) of a sine wave on the haptic unit.
frequency | The value is valid between 0Hz and 80Hz. Set the frequency (Hz) of a sine wave on the haptic unit. |
Reimplemented in cybsdk._VirtDevice.VirtDevice.
def cybsdk.IVirtDevice.IVirtDevice.HapticSetVolume | ( | self, | |
int | volume | ||
) |
Sets the haptic feedback (change of amplitude) in the baseplate.
volume | The value is valid between 0 (no feedback) and 100 (full feedback). Sets the haptic feedback (change of amplitude) in the baseplate. |
Reimplemented in cybsdk._VirtDevice.VirtDevice.