| SpaceControl DLL
    Version 2.8.9
    API documentation for the SpaceControl 3D input devices | 
These functions are used to switch axes on and off and to revert the axes' orientation. More...
| Functions | |
| ScStatus | scGetStdMode (int devIdx, unsigned char *bitmaskP) | 
| ScStatus | scSetStdMode (int devIdx, unsigned char *bitmaskP) | 
| ScStatus | scGetTra (int devIdx, bool *isTraP) | 
| Answers with true if the translational mode is set.  More... | |
| ScStatus | scSetTra (int devIdx, bool *isTraP) | 
| Sets and retrieves the translational mode.  More... | |
| ScStatus | scGetXTra (int devIdx, bool *isTraP) | 
| Answers with true if the x-axis' translational data will be transmitted.  More... | |
| ScStatus | scSetXTra (int devIdx, bool *isTraP) | 
| Sets and retrieves the translational mode for the x-axis.  More... | |
| ScStatus | scGetYTra (int devIdx, bool *isTraP) | 
| Answers with true if the y-axis' translational data will be transmitted.  More... | |
| ScStatus | scSetYTra (int devIdx, bool *isTraP) | 
| Sets and retrieves the translational mode for the y-axis.  More... | |
| ScStatus | scGetZTra (int devIdx, bool *isTraP) | 
| Answers with true if the z-axis' translational data will be transmitted.  More... | |
| ScStatus | scSetZTra (int devIdx, bool *isTraP) | 
| Sets and retrieves the translational mode for the z-axis.  More... | |
| ScStatus | scGetXTraRev (int devIdx, bool *isRevP) | 
| Answers with true if the x-axis' translational mode is set to reverse.  More... | |
| ScStatus | scSetXTraRev (int devIdx, bool *isRevP) | 
| Sets and retrieves the x-axis' reverse translational mode.  More... | |
| ScStatus | scGetYTraRev (int devIdx, bool *isRevP) | 
| Answers with true if the y-axis' translational mode is set to reverse.  More... | |
| ScStatus | scSetYTraRev (int devIdx, bool *isRevP) | 
| Sets and retrieves the y-axis' reverse translational mode.  More... | |
| ScStatus | scGetZTraRev (int devIdx, bool *isRevP) | 
| Answers with true if the z-axis' translational mode is set to reverse.  More... | |
| ScStatus | scSetZTraRev (int devIdx, bool *isRevP) | 
| Sets and retrieves the z-axis' reverse translational mode.  More... | |
| ScStatus | scGetRot (int devIdx, bool *isRotP) | 
| Answers with true if the rotational mode is set.  More... | |
| ScStatus | scSetRot (int devIdx, bool *isRotP) | 
| Sets and retrieves the rotational mode.  More... | |
| ScStatus | scGetXRot (int devIdx, bool *isRotP) | 
| Answers with true if the x-axis' rotational data will be transmitted.  More... | |
| ScStatus | scSetXRot (int devIdx, bool *isRotP) | 
| Sets and retrieves the rotational mode for the x-axis.  More... | |
| ScStatus | scGetYRot (int devIdx, bool *isRotP) | 
| Answers with true if the y-axis' rotational data will be transmitted.  More... | |
| ScStatus | scSetYRot (int devIdx, bool *isRotP) | 
| Sets and retrieves the rotational mode for the y-axis.  More... | |
| ScStatus | scGetZRot (int devIdx, bool *isRotP) | 
| Answers with true if the z-axis' rotational data will be transmitted.  More... | |
| ScStatus | scSetZRot (int devIdx, bool *isRotP) | 
| Sets and retrieves the rotational mode for the z-axis.  More... | |
| ScStatus | scGetXRotRev (int devIdx, bool *isRevP) | 
| Answers with true if the x-axis' rotational mode is set to reverse.  More... | |
| ScStatus | scSetXRotRev (int devIdx, bool *isRevP) | 
| Sets and retrieves the x-axis' reverse rotational mode.  More... | |
| ScStatus | scGetYRotRev (int devIdx, bool *isRevP) | 
| Answers with true if the y-axis' rotational mode is set to reverse.  More... | |
| ScStatus | scSetYRotRev (int devIdx, bool *isRevP) | 
| Sets and retrieves the y-axis' reverse rotational mode.  More... | |
| ScStatus | scGetZRotRev (int devIdx, bool *isRevP) | 
| Answers with true if the z-axis' rotational mode is set to reverse.  More... | |
| ScStatus | scSetZRotRev (int devIdx, bool *isRevP) | 
| Sets and retrieves the z-axis' reverse rotational mode.  More... | |
| ScStatus | scGetDom (int devIdx, bool *isDomP) | 
| Answers with true if the dominant mode is set.  More... | |
| ScStatus | scSetDom (int devIdx, bool *isDomP) | 
| Sets and retrieves the dominant mode.  More... | |
These functions are used to switch axes on and off and to revert the axes' orientation.
| ScStatus scGetDom | ( | int | devIdx, | 
| bool * | isDomP | ||
| ) | 
Answers with true if the dominant mode is set.
See scGetStdMode() for details.
Example: 
| devIdx | the index of the device to be requested | 
| isDomP | if dominant mode is active true, else false | 
References SC_COMMUNICATION_ERROR, SC_OK, and SC_WRONG_DEVICE_INDEX.
| ScStatus scGetRot | ( | int | devIdx, | 
| bool * | isRotP | ||
| ) | 
Answers with true if the rotational mode is set.
See scGetStdMode() for details. 
Example: 
| devIdx | the index of the device to be requested | 
| isRotP | if rotational mode is active true, else false | 
References SC_COMMUNICATION_ERROR, SC_OK, and SC_WRONG_DEVICE_INDEX.
| ScStatus scGetStdMode | ( | int | devIdx, | 
| unsigned char * | bitmaskP | ||
| ) | 
There are three modes:
The modes are coded as bits in the character *bitmaskP:
/// Bit no.: 87654321 /// *bitMaskP: 00000000 /// ^ if bit 1 is set rotational mode is active /// ^ if bit 2 is set translational mode is active /// ^ if bit 3 is set dominant mode is active ///
Example:
Attention: This function is used for the old SpaceMouse protocol and not needed for the new SpaceControl protocol.
| devIdx | the index of the device to be requested | 
| bitmaskP | pointer to the bitmask which contains the answer | 
References SC_COMMUNICATION_ERROR, SC_OK, and SC_WRONG_DEVICE_INDEX.
| ScStatus scGetTra | ( | int | devIdx, | 
| bool * | isTraP | ||
| ) | 
Answers with true if the translational mode is set.
See scGetStdMode() for details. 
Example: 
| devIdx | the index of the device to be requested | 
| isTraP | if translational mode is active true, else false | 
References SC_COMMUNICATION_ERROR, SC_OK, and SC_WRONG_DEVICE_INDEX.
| ScStatus scGetXRot | ( | int | devIdx, | 
| bool * | isRotP | ||
| ) | 
Answers with true if the x-axis' rotational data will be transmitted.
Example: 
| devIdx | the index of the device to be requested | 
| isRotP | if rotational mode is active true, else false | 
References SC_COMMUNICATION_ERROR, SC_OK, and SC_WRONG_DEVICE_INDEX.
| ScStatus scGetXRotRev | ( | int | devIdx, | 
| bool * | isRevP | ||
| ) | 
Answers with true if the x-axis' rotational mode is set to reverse.
Example: 
| devIdx | the index of the device to be requested | 
| isRevP | if reverse mode is active true, else false | 
References SC_COMMUNICATION_ERROR, SC_OK, and SC_WRONG_DEVICE_INDEX.
| ScStatus scGetXTra | ( | int | devIdx, | 
| bool * | isTraP | ||
| ) | 
Answers with true if the x-axis' translational data will be transmitted.
Example: 
| devIdx | the index of the device to be requested | 
| isTraP | if translational mode is active true, else false | 
References SC_COMMUNICATION_ERROR, SC_OK, and SC_WRONG_DEVICE_INDEX.
| ScStatus scGetXTraRev | ( | int | devIdx, | 
| bool * | isRevP | ||
| ) | 
Answers with true if the x-axis' translational mode is set to reverse.
Example: 
| devIdx | the index of the device to be requested | 
| isRevP | if reverse mode is active true, else false | 
References SC_COMMUNICATION_ERROR, SC_OK, and SC_WRONG_DEVICE_INDEX.
| ScStatus scGetYRot | ( | int | devIdx, | 
| bool * | isRotP | ||
| ) | 
Answers with true if the y-axis' rotational data will be transmitted.
Example: 
| devIdx | the index of the device to be requested | 
| isRotP | if rotational mode is active true, else false | 
References SC_COMMUNICATION_ERROR, SC_OK, and SC_WRONG_DEVICE_INDEX.
| ScStatus scGetYRotRev | ( | int | devIdx, | 
| bool * | isRevP | ||
| ) | 
Answers with true if the y-axis' rotational mode is set to reverse.
Example: 
| devIdx | the index of the device to be requested | 
| isRevP | if reverse mode is active true, else false | 
References SC_COMMUNICATION_ERROR, SC_OK, and SC_WRONG_DEVICE_INDEX.
| ScStatus scGetYTra | ( | int | devIdx, | 
| bool * | isTraP | ||
| ) | 
Answers with true if the y-axis' translational data will be transmitted.
Example: 
| devIdx | the index of the device to be requested | 
| isTraP | if translational mode is active true, else false | 
References SC_COMMUNICATION_ERROR, SC_OK, and SC_WRONG_DEVICE_INDEX.
| ScStatus scGetYTraRev | ( | int | devIdx, | 
| bool * | isRevP | ||
| ) | 
Answers with true if the y-axis' translational mode is set to reverse.
Example: 
| devIdx | the index of the device to be requested | 
| isRevP | if reverse mode is active true, else false | 
References SC_COMMUNICATION_ERROR, SC_OK, and SC_WRONG_DEVICE_INDEX.
| ScStatus scGetZRot | ( | int | devIdx, | 
| bool * | isRotP | ||
| ) | 
Answers with true if the z-axis' rotational data will be transmitted.
Example: 
| devIdx | the index of the device to be requested | 
| isRotP | if rotational mode is active true, else false | 
References SC_COMMUNICATION_ERROR, SC_OK, and SC_WRONG_DEVICE_INDEX.
| ScStatus scGetZRotRev | ( | int | devIdx, | 
| bool * | isRevP | ||
| ) | 
Answers with true if the z-axis' rotational mode is set to reverse.
Example: 
| devIdx | the index of the device to be requested | 
| isRevP | if reverse mode is active true, else false | 
References SC_COMMUNICATION_ERROR, SC_OK, and SC_WRONG_DEVICE_INDEX.
| ScStatus scGetZTra | ( | int | devIdx, | 
| bool * | isTraP | ||
| ) | 
Answers with true if the z-axis' translational data will be transmitted.
Example: 
| devIdx | the index of the device to be requested | 
| isTraP | if translational mode is active true, else false | 
References SC_COMMUNICATION_ERROR, SC_OK, and SC_WRONG_DEVICE_INDEX.
| ScStatus scGetZTraRev | ( | int | devIdx, | 
| bool * | isRevP | ||
| ) | 
Answers with true if the z-axis' translational mode is set to reverse.
Example: 
| devIdx | the index of the device to be requested | 
| isRevP | if reverse mode is active true, else false | 
References SC_COMMUNICATION_ERROR, SC_OK, and SC_WRONG_DEVICE_INDEX.
| ScStatus scSetDom | ( | int | devIdx, | 
| bool * | isDomP | ||
| ) | 
Sets and retrieves the dominant mode.
This is a convenience function for scSetStdMode(), see there for details.
Example: 
| devIdx | the index of the device the data is to be set | 
| isDomP | if dominant mode is active true, else false | 
References SC_COMMUNICATION_ERROR, SC_OK, and SC_WRONG_DEVICE_INDEX.
| ScStatus scSetRot | ( | int | devIdx, | 
| bool * | isRotP | ||
| ) | 
Sets and retrieves the rotational mode.
This is a convenience function for scSetStdMode(), see there for details. 
Example: 
| devIdx | the index of the device the data is to be set | 
| isRotP | if translational mode is active true, else false | 
References SC_COMMUNICATION_ERROR, SC_OK, and SC_WRONG_DEVICE_INDEX.
| ScStatus scSetStdMode | ( | int | devIdx, | 
| unsigned char * | bitmaskP | ||
| ) | 
See scGetStdMode() for details. Example:
Attention: This function is used for the old SpaceMouse protocol and not needed for the new SpaceControl protocol.
| devIdx | the index of the device to be requested | 
| bitmaskP | pointer to the bitmask which contains the answer | 
References MAX_STD_MODE, MIN_STD_MODE, SC_COMMUNICATION_ERROR, SC_OK, SC_PARAMETER_OUT_OF_RANGE, and SC_WRONG_DEVICE_INDEX.
| ScStatus scSetTra | ( | int | devIdx, | 
| bool * | isTraP | ||
| ) | 
Sets and retrieves the translational mode.
This is a convenience function for scSetStdMode(), see there for details. 
Example: 
| devIdx | the index of the device the data is to be set | 
| isTraP | if translational mode is active true, else false | 
References SC_COMMUNICATION_ERROR, SC_OK, and SC_WRONG_DEVICE_INDEX.
| ScStatus scSetXRot | ( | int | devIdx, | 
| bool * | isRotP | ||
| ) | 
Sets and retrieves the rotational mode for the x-axis.
Example: 
| devIdx | the index of the device the data is to be set | 
| isRotP | if rotational mode is active true, else false | 
References SC_COMMUNICATION_ERROR, SC_OK, and SC_WRONG_DEVICE_INDEX.
| ScStatus scSetXRotRev | ( | int | devIdx, | 
| bool * | isRevP | ||
| ) | 
Sets and retrieves the x-axis' reverse rotational mode.
Example: 
| devIdx | the index of the device the data is to be set | 
| isRevP | if reverse mode is active true, else false | 
References SC_COMMUNICATION_ERROR, SC_OK, and SC_WRONG_DEVICE_INDEX.
| ScStatus scSetXTra | ( | int | devIdx, | 
| bool * | isTraP | ||
| ) | 
Sets and retrieves the translational mode for the x-axis.
Example: 
| devIdx | the index of the device the data is to be set | 
| isTraP | if translational mode is active true, else false | 
References SC_COMMUNICATION_ERROR, SC_OK, and SC_WRONG_DEVICE_INDEX.
| ScStatus scSetXTraRev | ( | int | devIdx, | 
| bool * | isRevP | ||
| ) | 
Sets and retrieves the x-axis' reverse translational mode.
Example: 
| devIdx | the index of the device the data is to be set | 
| isRevP | if reverse mode is active true, else false | 
References SC_COMMUNICATION_ERROR, SC_OK, and SC_WRONG_DEVICE_INDEX.
| ScStatus scSetYRot | ( | int | devIdx, | 
| bool * | isRotP | ||
| ) | 
Sets and retrieves the rotational mode for the y-axis.
Example: 
| devIdx | the index of the device the data is to be set | 
| isRotP | if rotational mode is active true, else false | 
References SC_COMMUNICATION_ERROR, SC_OK, and SC_WRONG_DEVICE_INDEX.
| ScStatus scSetYRotRev | ( | int | devIdx, | 
| bool * | isRevP | ||
| ) | 
Sets and retrieves the y-axis' reverse rotational mode.
Example: 
| devIdx | the index of the device the data is to be set | 
| isRevP | if reverse mode is active true, else false | 
References SC_COMMUNICATION_ERROR, SC_OK, and SC_WRONG_DEVICE_INDEX.
| ScStatus scSetYTra | ( | int | devIdx, | 
| bool * | isTraP | ||
| ) | 
Sets and retrieves the translational mode for the y-axis.
Example: 
| devIdx | the index of the device the data is to be set | 
| isTraP | if translational mode is active true, else false | 
References SC_COMMUNICATION_ERROR, SC_OK, and SC_WRONG_DEVICE_INDEX.
| ScStatus scSetYTraRev | ( | int | devIdx, | 
| bool * | isRevP | ||
| ) | 
Sets and retrieves the y-axis' reverse translational mode.
Example: 
| devIdx | the index of the device the data is to be set | 
| isRevP | if reverse mode is active true, else false | 
References SC_COMMUNICATION_ERROR, SC_OK, and SC_WRONG_DEVICE_INDEX.
| ScStatus scSetZRot | ( | int | devIdx, | 
| bool * | isRotP | ||
| ) | 
Sets and retrieves the rotational mode for the z-axis.
Example: 
| devIdx | the index of the device the data is to be set | 
| isRotP | if rotational mode is active true, else false | 
References SC_COMMUNICATION_ERROR, SC_OK, and SC_WRONG_DEVICE_INDEX.
| ScStatus scSetZRotRev | ( | int | devIdx, | 
| bool * | isRevP | ||
| ) | 
Sets and retrieves the z-axis' reverse rotational mode.
Example: 
| devIdx | the index of the device the data is to be set | 
| isRevP | if reverse mode is active true, else false | 
References SC_COMMUNICATION_ERROR, SC_OK, and SC_WRONG_DEVICE_INDEX.
| ScStatus scSetZTra | ( | int | devIdx, | 
| bool * | isTraP | ||
| ) | 
Sets and retrieves the translational mode for the z-axis.
Example: 
| devIdx | the index of the device the data is to be set | 
| isTraP | if translational mode is active true, else false | 
References SC_COMMUNICATION_ERROR, SC_OK, and SC_WRONG_DEVICE_INDEX.
| ScStatus scSetZTraRev | ( | int | devIdx, | 
| bool * | isRevP | ||
| ) | 
Sets and retrieves the z-axis' reverse translational mode.
Example: 
| devIdx | the index of the device the data is to be set | 
| isRevP | if reverse mode is active true, else false | 
References SC_COMMUNICATION_ERROR, SC_OK, and SC_WRONG_DEVICE_INDEX.
|   | Copyright (c) SpaceControl GmbH & Co. KG, Am Technologiepark 10, D-82229 Seefeld |