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