快速开始
跨平台的API
平台相关的API
模块内容
Wiki
RotationWatcher
基类:object
object
RotationWatcher class
get_ready
teardown
start
Start the RotationWatcher daemon thread
reg_callback
Returns:
get_rotation
XYTransformer
transform the coordinates (x, y) by orientation (upright <–> original)
up_2_ori
Transform the coordinates upright –> original
transformed coordinates (x, y)
ori_2_up
Transform the coordinates original –> upright