o
    Qh                     @   sJ   d dl mZ d dlmZmZ G dd dZG dd dZG dd dZd	S )
    )Channel)MouseButtonlocals_to_paramsc                   @   s   e Zd ZdeddfddZdeddfddZdeddfd	d
ZdeddfddZddede	ddfddZ
ddede	ddfddZdS )KeyboardchannelreturnNc                 C      || _ |jj| _|jj| _d S N_channel_connection_loop_dispatcher_fiberselfr    r   T/home/air/yokohama/back/venv/lib/python3.10/site-packages/playwright/_impl/_input.py__init__      
zKeyboard.__init__keyc                        | j dtt I d H  d S )NkeyboardDownr   sendr   localsr   r   r   r   r   down      zKeyboard.downc                    r   )N
keyboardUpr   r   r   r   r   up   r   zKeyboard.uptextc                    r   )NkeyboardInsertTextr   )r   r    r   r   r   insert_text   r   zKeyboard.insert_textdelayc                    r   )NkeyboardTyper   )r   r    r#   r   r   r   type"   r   zKeyboard.typec                    r   )NkeyboardPressr   )r   r   r#   r   r   r   press%   r   zKeyboard.pressr	   )__name__
__module____qualname__r   r   strr   r   r"   floatr%   r'   r   r   r   r   r      s    r   c                   @   s   e Zd ZdeddfddZddedededdfd	d
Z		ddededdfddZ			ddededdfddZ
			ddedededededdfddZ		ddededededdf
ddZdededdfddZdS )Mouser   r   Nc                 C   r   r	   r
   r   r   r   r   r   *   r   zMouse.__init__xystepsc                    r   )N	mouseMover   )r   r.   r/   r0   r   r   r   move/   r   z
Mouse.movebutton
clickCountc                    r   )N	mouseDownr   r   r3   r4   r   r   r   r   2      z
Mouse.downc                    r   )NmouseUpr   r6   r   r   r   r   9   r7   zMouse.upr#   c                    r   )N
mouseClickr   )r   r.   r/   r#   r3   r4   r   r   r   click@   s   zMouse.clickc                    s    | j ||||ddI d H  d S )N   )r#   r3   r4   )r:   )r   r.   r/   r#   r3   r   r   r   dblclickJ   s   zMouse.dblclickdeltaXdeltaYc                    r   )N
mouseWheelr   )r   r=   r>   r   r   r   wheelS   r   zMouse.wheelr	   )NN)NNN)r(   r)   r*   r   r   r,   intr2   r   r   r   r:   r<   r@   r   r   r   r   r-   )   sf    
	


	r-   c                   @   s4   e Zd ZdeddfddZdededdfdd	ZdS )
Touchscreenr   r   Nc                 C   r   r	   r
   r   r   r   r   r   X   r   zTouchscreen.__init__r.   r/   c                    r   )NtouchscreenTapr   )r   r.   r/   r   r   r   tap]   r   zTouchscreen.tap)r(   r)   r*   r   r   r,   rD   r   r   r   r   rB   W   s    rB   N)playwright._impl._connectionr   playwright._impl._helperr   r   r   r-   rB   r   r   r   r   <module>   s
   .