mirror of
https://github.com/TheFunny/ArisuAutoSweeper
synced 2026-10-10 17:52:09 +00:00
fix: re-init MaaTouch when orientation changes
This commit is contained in:
@@ -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))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user