发现一个网站不错:http://toadlet.us/doxygen/cpp/structASensorEvent.html
对于Android查询一些代码挺有帮助的,刚刚搜索ASensorEvent 结构体发现的,分享一下。
ASensorEvent Struct Reference
#include <AndroidSensorDevice.h>
Collaboration diagram for ASensorEvent:
Public Attributes | |
int32_t | version |
int32_t | sensor |
int32_t | type |
int32_t | reserved0 |
int64_t | timestamp |
union { | |
float data [16] | |
ASensorVector vector | |
ASensorVector acceleration | |
ASensorVector magnetic | |
float temperature | |
float distance | |
float light | |
float pressure | |
}; | |
int32_t | reserved1 [4] |