|
LinksPoint GPS Toolkit Reference
|
static Boolean MainFormHandleEvent(EventPtr eventP)
{
Boolean handled = false;
FormType * frmP;
long lBytesRead = 0;
switch (eventP->eType)
{
case nilEvent:
int iLastPos = 0;
int iPos = 0;
do
{
if (GpsCheckForData(&lBytesRead, NULL) == GPSERROR_NONE)
{
if (lBytesRead)
{
GPSDATASTRUCT gpsData;
GpsGetData(&gpsData);
.
// Check the latest data here
.
.
}
}
}
}
}| Parameters | Description |
| plBytesRead | Pointer to number of bytes read from the GPS device during the data check |
| pulDataMask | Pointer to the data mask for the types of data that have been changed. This value can be NULL if no data masks are requested, or any combination of the Data Masks |