47 lines
1.1 KiB
Python
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',
|
|
]
|