![]() |
vitasdk
Documentation of the vitasdk
|
Go to the source code of this file.
Data Structures | |
| struct | SceMotionState |
| Returned motion state. More... | |
| struct | SceMotionSensorState |
| Returned motion sensor state. More... | |
| struct | SceMotionDeviceLocation |
| Returned location of both the accelerometer and gyroscope in mm. More... | |
Enumerations | |
| enum | SceMotionMagFieldStability { SCE_MOTION_MAGFIELD_UNSTABLE = 0 , SCE_MOTION_MAGFIELD_UNUSED = 1 , SCE_MOTION_MAGFIELD_STABLE = 2 } |
| enum | SceMotionErrorCode { SCE_MOTION_ERROR_DATA_INVALID = 0x80360200 , SCE_MOTION_ERROR_READING = 0x80360201 , SCE_MOTION_ERROR_NON_INIT_ERR = 0x80360202 , SCE_MOTION_ERROR_STATE_INVALID = 0x80360203 , SCE_MOTION_ERROR_CALIB_READ_FAIL = 0x80360204 , SCE_MOTION_ERROR_OUT_OF_BOUNDS = 0x80360205 , SCE_MOTION_ERROR_NOT_SAMPLING = 0x80360206 , SCE_MOTION_ERROR_ALREADY_SAMPLING = 0x80360207 , SCE_MOTION_ERROR_MEM_IN_USE = 0x80360208 } |
Functions | |
| VITASDK_BUILD_ASSERT_EQ (0xF8, SceMotionState) | |
| VITASDK_BUILD_ASSERT_EQ (0x40, SceMotionSensorState) | |
| VITASDK_BUILD_ASSERT_EQ (0x30, SceMotionDeviceLocation) | |
| int | sceMotionGetState (SceMotionState *motionState) |
| Gets the current motion state. | |
| int | sceMotionGetSensorState (SceMotionSensorState *sensorState, int numRecords) |
| Gets the current motion sensor state. | |
| int | sceMotionGetDeviceLocation (SceMotionDeviceLocation *deviceLocation) |
| Gets the location of the device's sensors in relation to its center point (in mm). | |
| int | sceMotionGetBasicOrientation (SceFVector3 *basicOrientation) |
| Gets the basic orientation of the device in relation to gravity. | |
| int | sceMotionRotateYaw (float radians) |
| Rotate the yaw axis. | |
| int | sceMotionGetTiltCorrection (void) |
| Get Status of tilt correction. | |
| int | sceMotionSetTiltCorrection (int setValue) |
| Activate/deactivate tilt correction. | |
| int | sceMotionGetDeadband (void) |
| Get status of deadbanding. | |
| int | sceMotionSetDeadband (int setValue) |
| Activate/deactivate deadbanding. | |
| int | sceMotionGetGyroBiasCorrection (void) |
| Get status of gyroscope bias correction. | |
| int | sceMotionSetGyroBiasCorrection (int setValue) |
| Activate/deactivate gyroscope bias correction. | |
| int | sceMotionSetAngleThreshold (float angle) |
| Define the angle threshold for basic orientation. | |
| float | sceMotionGetAngleThreshold (void) |
| Get the angle threshold for basic orientation. | |
| int | sceMotionReset (void) |
| Set current orientation as origin. | |
| int | sceMotionMagnetometerOn (void) |
| Start magnetometer sampling. | |
| int | sceMotionMagnetometerOff (void) |
| Stop magnetometer sampling. | |
| int | sceMotionGetMagnetometerState (void) |
| Get status of magnetometer sampling. | |
| int | sceMotionStartSampling (void) |
| Start sampling. | |
| int | sceMotionStopSampling (void) |
| Stop sampling. | |