Can we access the compass?

Monkey Targets Forums/iOS/Can we access the compass?

chimaera(Posted 2013) [#1]
Has anyone been able to gain access to compass data? Since we can get the accelorometer I thought that there should be a similar command to get compass direction.

Thansk for any help.


rIKmAN(Posted 2013) [#2]
Not in native Monkey at the moment.
You would have to use some native code and wrap it to be able to use from within Monkey, or edit the xCode project and do it in there.

Here are some links from a quick Google:

Link 1
Link 2
Link 3

...and this post will help you understand how to wrap native code to be used from Monkey.


chimaera(Posted 2013) [#3]
Thanks for the tips Rikman! I have been thinking about looking into wrapping native code so hopefully your links will help. I will see if I get anywhere.