vitasdk
Documentation of the vitasdk
|
Exports for User.
Include the header file in your project:
Link the library to the executable:
Load the required module:
Typedefs | |
typedef SceUInt32 | SceLocationHandle |
Location handle datatype. More... | |
typedef void(* | SceLocationLocationInfoCallback) (SceInt32 result, SceLocationHandle handle, const SceLocationLocationInfo *location, void *userdata) |
Location information callback notification function. More... | |
typedef void(* | SceLocationHeadingInfoCallback) (SceInt32 result, SceLocationHandle handle, const SceLocationHeadingInfo *heading, void *userdata) |
Callback notification function for direction information. More... | |
Macros | |
#define | SCE_LOCATION_DATA_INVALID (-9999.0) |
struct SceLocationLocationInfo |
Structure of location information.
Data Fields | ||
---|---|---|
SceDouble64 | latitude | Latitude (deg). Valid range: -90 to + 90. If cannot be obtained, SCE_LOCATION_DATA_INVALID. |
SceDouble64 | longitude | Longitude (deg). Valid range: -180 to +180. If cannot be obtained, SCE_LOCATION_DATA_INVALID. |
SceDouble64 | altitude | Altitude (m). If cannot be obtained, SCE_LOCATION_DATA_INVALID. |
SceFloat32 | accuracy | Horizontal error (m). If cannot be obtained, SCE_LOCATION_DATA_INVALID. |
SceFloat32 | reserve | Reserve. |
SceFloat32 | direction | Travel direction. If cannot be obtained, SCE_LOCATION_DATA_INVALID. |
SceFloat32 | speed | Travel speed (m/s). If cannot be obtained, SCE_LOCATION_DATA_INVALID. |
SceRtcTick | timestamp | Time of data acquisition, in μsec (UTC) |
struct SceLocationHeadingInfo |
Structure of heading information.
Data Fields | ||
---|---|---|
SceFloat32 | trueHeading | Clockwise angle from true north (0 to 360 degrees). If cannot be acquired, SCE_LOCATION_INVALID_DATA. |
SceFloat32 | headingVectorX | Direction vector X coordinates element of true north. If cannot be acquired, SCE_LOCATION_INVALID_DATA. |
SceFloat32 | headingVectorY | Direction vector Y coordinates element of true north. If cannot be acquired, SCE_LOCATION_INVALID_DATA. |
SceFloat32 | headingVectorZ | Direction vector Z coordinates element of true north. If cannot be acquired, SCE_LOCATION_INVALID_DATA. |
SceFloat32 | reserve | Reserve. |
SceFloat32 | reserve2 | Reserve. |
SceRtcTick | timestamp | Time acquired in unit of 1 usec (UTC) |
struct SceLocationPermissionInfo |
Location information acquisition permission information.
Data Fields | ||
---|---|---|
SceLocationPermissionStatus | parentalstatus | Status of usage permission through parental control. |
SceLocationPermissionStatus | mainstatus | Status of usage permission through location data item of system settings. |
SceLocationPermissionApplicationStatus | applicationstatus | Status of usage permission through location data item for each application in system settings. |
int | unk_0x0C | |
int | unk_0x10 |
#define SCE_LOCATION_DATA_INVALID (-9999.0) |
typedef SceUInt32 SceLocationHandle |
Location handle datatype.
typedef void(* SceLocationLocationInfoCallback) (SceInt32 result, SceLocationHandle handle, const SceLocationLocationInfo *location, void *userdata) |
Location information callback notification function.
typedef void(* SceLocationHeadingInfoCallback) (SceInt32 result, SceLocationHandle handle, const SceLocationHeadingInfo *heading, void *userdata) |
Callback notification function for direction information.
enum SceLocationErrorCode |
Location error codes.
location usage permission status for individual application
Location measurement method.
Direction measurement method.
VITASDK_BUILD_ASSERT_EQ | ( | 4 | , |
SceLocationHandle | |||
) |
VITASDK_BUILD_ASSERT_EQ | ( | 0x30 | , |
SceLocationLocationInfo | |||
) |
VITASDK_BUILD_ASSERT_EQ | ( | 0x20 | , |
SceLocationHeadingInfo | |||
) |
VITASDK_BUILD_ASSERT_EQ | ( | 0x14 | , |
SceLocationPermissionInfo | |||
) |
SceInt32 sceLocationOpen | ( | SceLocationHandle * | handle, |
SceLocationLocationMethod | locateMethod, | ||
SceLocationHeadingMethod | headingMethod | ||
) |
Functions.
Library start
SceInt32 sceLocationClose | ( | SceLocationHandle | handle | ) |
Close library.
SceInt32 sceLocationReopen | ( | SceLocationHandle | handle, |
SceLocationLocationMethod | locateMethod, | ||
SceLocationHeadingMethod | headingMethod | ||
) |
Reopen library.
SceInt32 sceLocationGetMethod | ( | SceLocationHandle | handle, |
SceLocationLocationMethod * | locateMethod, | ||
SceLocationHeadingMethod * | headingMethod | ||
) |
Get location measurement method.
SceInt32 sceLocationGetLocation | ( | SceLocationHandle | handle, |
SceLocationLocationInfo * | locationInfo | ||
) |
Get location information.
SceInt32 sceLocationCancelGetLocation | ( | SceLocationHandle | handle | ) |
Cancel location information acquisition operation.
SceInt32 sceLocationStartLocationCallback | ( | SceLocationHandle | handle, |
SceUInt32 | distance, | ||
SceLocationLocationInfoCallback | callback, | ||
void * | userdata | ||
) |
Start continuous acquisition of location information.
SceInt32 sceLocationStopLocationCallback | ( | SceLocationHandle | handle | ) |
Stop continuous acquisition of location information.
SceInt32 sceLocationGetHeading | ( | SceLocationHandle | handle, |
SceLocationHeadingInfo * | headingInfo | ||
) |
Get direction information.
SceInt32 sceLocationStartHeadingCallback | ( | SceLocationHandle | handle, |
SceUInt32 | difference, | ||
SceLocationHeadingInfoCallback | callback, | ||
void * | userdata | ||
) |
Start continuous acquisition of direction information.
SceInt32 sceLocationStopHeadingCallback | ( | SceLocationHandle | handle | ) |
Stop continuous acquisition of direction information.
SceInt32 sceLocationConfirm | ( | SceLocationHandle | handle | ) |
Allow acquisition of location information.
SceInt32 sceLocationConfirmGetStatus | ( | SceLocationHandle | handle, |
SceLocationDialogStatus * | status | ||
) |
Get status of location information acquisition permission dialog.
SceInt32 sceLocationConfirmGetResult | ( | SceLocationHandle | handle, |
SceLocationDialogResult * | result | ||
) |
Get result of location information acquisition permission dialog.
SceInt32 sceLocationConfirmAbort | ( | SceLocationHandle | handle | ) |
Abort location information acquisition permission dialog.
SceInt32 sceLocationGetPermission | ( | SceLocationHandle | handle, |
SceLocationPermissionInfo * | info | ||
) |
Get location information acquisition permission/refusal information.
SceInt32 sceLocationSetGpsEmulationFile | ( | unsigned char * | filename | ) |
Get location information acquisition permission information.