Accelerometer_Interval
Syntax:
_Accelerometer_Interval(frequency)
Purpose: Sets the frequency (in Hz) at which accelerometer events are generated. Note that the default value varies between Android and iOS implementations.
Activate_Multitouch
Syntax:
_Activate_Multitouch()
Purpose: Enables multitouch input on the device.
Deactivate_Multitouch
Syntax:
_Deactivate_Multitouch()
Purpose: Disables multitouch input on the device.
GPS_Accuracy
Syntax:
_GPS_Accuracy(distance)
Purpose: Configures the desired accuracy (in meters) for location (GPS) events. Note that actual accuracy is device-dependent, and higher accuracy can impact battery life.
Geo_Distance
Syntax:
_Geo_Distance(lat1,
lon1, lat2, lon2, unit)
Purpose: Calculates the distance between two geographic coordinates. Optional 'unit' parameter can be 'M' (miles), 'K' (kilometers), or 'N' (nautical miles).
Get_Accelerometer_Delta_Time
Syntax:
_Get_Accelerometer_Delta_Time()
Purpose: Returns the time (in seconds) elapsed since the previous accelerometer event.
Get_Accelerometer_Device
Syntax:
_Get_Accelerometer_Device()
Purpose: Returns an InputDevice object representing the accelerometer, useful for distinguishing between multiple devices.
Get_Accelerometer_Is_Shake
Syntax:
_Get_Accelerometer_Is_Shake()
Purpose: Returns 'true' if the device was shaken, allowing for shake detection (implementation is device-dependent).
Get_Accelerometer_Remote_Data_Available
Syntax:
_Get_Accelerometer_Remote_Data_Available()
Purpose: Returns four values: a boolean indicating data availability, and the remote gravity values for the x, y, and z axes.
Note: Implementation details for using remote data are provided in the description.
Get_Accelerometer_xGravity
Syntax:
_Get_Accelerometer_xGravity()
Purpose: Returns the smoothed acceleration due to gravity along the device's x-axis (portrait orientation).
Get_Accelerometer_xInstant
Syntax:
_Get_Accelerometer_xInstant()
Purpose: Returns the change in acceleration ('jerk') along the device's x-axis (portrait orientation).
Get_Accelerometer_xRaw
Syntax:
_Get_Accelerometer_xRaw()
Purpose: Returns the raw, unfiltered acceleration due to gravity along the device's x-axis (portrait orientation).
Get_Accelerometer_yGravity, Get_Accelerometer_yInstant, Get_Accelerometer_yRaw, Get_Accelerometer_zGravity, Get_Accelerometer_zInstant, Get_Accelerometer_zRaw
Syntax: Analogous to the 'x' versions above
Purpose: Provide the corresponding smoothed, instant (change), and raw acceleration values for the y-axis and z-axis of the device.
Get_Compass_Geographic
Syntax:
_Get_Compass_Geographic()
Purpose: Returns the device's heading in degrees clockwise relative to geographic North (true North).
Get_Compass_Magnetic
Syntax:
_Get_Compass_Magnetic()
Purpose: Returns the device's heading in degrees clockwise relative to magnetic North.
Get_GPS_Altitude
Syntax:
_Get_GPS_Altitude()
Purpose: Returns the altitude (in meters) associated with the current GPS location.
Get_GPS_Direction
Syntax:
_Get_GPS_Direction()
Purpose: Returns the device's travel direction in degrees clockwise from true North. A negative value indicates an invalid reading.
Get_GPS_Error_Code, Get_GPS_Error_Message, Get_GPS_Latitude, Get_GPS_Longitude, Get_GPS_Speed, Get_GPS_Time
Syntax:
_Get_GPS_Error_Code()
,
_Get_GPS_Error_Message()
, etc.
Purpose: Retrieve specific information from GPS location events. See the description of GPS events for details and examples.
Get_Gyroscope_Delta_Time, Get_Gyroscope_xRotation, Get_Gyroscope_yRotation, Get_Gyroscope_zRotation
Syntax: Analogous to the accelerometer versions above
Purpose: Provide gyroscope event timing and rotation rate data for the device's x, y, and z axes.
Gyroscope_Interval
Syntax:
_Gyroscope_Interval(frequency)
Purpose: Sets the frequency (in Hz) of gyroscope events. Note that battery life is impacted, and there are device-specific limitations.
Has_Event_Source
Syntax:
_Has_Event_Source(eventName)
Purpose: Checks if a device supports a given event type (e.g., "accelerometer", "gyroscope").
Init_Virtual_GPS
Syntax:
_Init_Virtual_GPS(Server_Url,Latitude_Variable,Longitude_Variable,Angle_Variable,Location_function,delay_msecs)
Purpose: Initializes the virtual GPS functionality, requiring an external setup (details provided in description).
Location_Threshold
Syntax:
_Location_Threshold(distance)
Purpose: Sets the minimum distance (in meters) the device must travel before a new location (GPS) event is generated. This helps conserve battery life.
Vibrate
Syntax:
_Vibrate()
Purpose: Causes the device to vibrate (if it has the capability).