Quantcast
Viewing all articles
Browse latest Browse all 40524

Android GPS Example?

Hi,

I'm referencing this library (and it's related C++ calls) for OFAndroid (@arturo @tallavi)

PG 609 of this book mentions that to use the GPS I have to call ofRegisterGPSEvent() in my setup function. However, the ofRegisterGPSEvent() function as implemented needs some pointer to a Listener ofRegisterGPSEvent(Listener * listener)

What parameters would should I put in this function to call it in setup? Can anyone share a quick example of registering the listener in the app and doing some action when the event is triggered?

I'm new to Of/C++ so hope I'm not asking a stupid question here Image may be NSFW.
Clik here to view.
wink


Viewing all articles
Browse latest Browse all 40524

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>