fix: re-init MaaTouch when orientation changes

This commit is contained in:
2026-07-05 23:08:36 +08:00
parent 6d2b536050
commit 7415c7e217
3 changed files with 50 additions and 2 deletions
+10
View File
@@ -164,6 +164,16 @@ class Device(Screenshot, Control, AppControl):
if self.config.Emulator_ScreenshotMethod == 'nemu_ipc':
self.nemu_ipc_release()
def get_orientation(self):
"""
Callbacks when orientation changed.
"""
o = super().get_orientation()
self.on_orientation_change_maatouch()
return o
def stuck_record_add(self, button):
self.detect_record.add(str(button))