There is a compiled command line application here that does this.
Is there a Cocoa API to query this data?
There is a compiled command line application here that does this.
Is there a Cocoa API to query this data?
You can try SMSLib, which is an open-source Objective-C library for accessing the sudden motion sensor.
There isn't a Cocoa API for the motion sensor. It's only available through calls to IOKit. It's described in Mac OS X Internals.
You can try SMSLib, which is an open-source Objective-C library for accessing the sudden motion sensor.
© 2022 - 2024 — McMap. All rights reserved.