autool/DroidBot/platforms/windows/__init__.py
2026-06-17 19:44:18 +08:00

47 lines
1.1 KiB
Python

"""
Windows Platform Module
Platform-specific implementations for Windows desktop applications.
"""
from .windows_device import WindowsDevice
from .windows_device_state import WindowsDeviceState
from .windows_input_event import (
WindowsTouchEvent,
WindowsLongTouchEvent,
WindowsSwipeEvent,
WindowsScrollEvent,
WindowsSetTextEvent,
WindowsKeyEvent,
WindowsKillAppEvent,
)
# 注册 Windows 平台到工厂
from ...core.platform_factory import PlatformFactory, Platform
PlatformFactory.register_platform(
Platform.WINDOWS,
WindowsDevice,
WindowsDeviceState,
{
'touch': WindowsTouchEvent,
'long_touch': WindowsLongTouchEvent,
'swipe': WindowsSwipeEvent,
'scroll': WindowsScrollEvent,
'set_text': WindowsSetTextEvent,
'key': WindowsKeyEvent,
'kill_app': WindowsKillAppEvent,
}
)
__all__ = [
'WindowsDevice',
'WindowsDeviceState',
'WindowsTouchEvent',
'WindowsLongTouchEvent',
'WindowsSwipeEvent',
'WindowsScrollEvent',
'WindowsSetTextEvent',
'WindowsKeyEvent',
'WindowsKillAppEvent',
]