快速开始
跨平台的API
平台相关的API
RotationWatcher
XYTransformer
模块内容
Wiki
基类:object
object
RotationWatcher class
Install the RotationWatcher package
None
Uninstall the RotationWatcher package
Setup rotation wacher server
server process
Start the RotationWatcher daemon thread
initial orientation
ow_callback –
Returns:
transform the coordinates (x, y) by orientation (upright <–> original)
Transform the coordinates upright –> original
tuple_xy – coordinates (x, y)
tuple_wh – screen width and height
orientation – orientation
transformed coordinates (x, y)
Transform the coordinates original –> upright