+
     i}  c                   s    ^ RI HtHt ^ RIHt ^ RIHt ^ RIHt ^ RI	H
t
 ^ RIHt ^ RIHtHt ^ RIHt ^ R	IHt ^ R
IHt  ! R R]4      tR# )i    )TupleDict)
exceptions)InputCombination)Mapping)MappingParsingError)GlobalUInputs)MappingHandlerHandlerEnums)
InputEvent)logger)get_evdev_constant_namec                   s   a a ] tR t^$t oRtV3R lV 3R lltR tR t]R 4       t	V3R lR lt
V3R	 lR
 ltV3R lR ltV3R lR ltV3R ltRtVtV ;t# )
KeyHandlerz#Injects the target key if notified.c                s,   < V ^8  d   QhRS[ RS[RS[/# )   combinationmappingglobal_uinputs)r   r   r   Zformat__classdict__   "Y/usr/lib/python3.14/site-packages/inputremapper/injection/mapping_handlers/key_handler.py__annotate__KeyHandler.__annotate__*   s)      %  &	    c                s   < \         SV `  WV4       VP                  4       pV'       g   \        R VR7      hWPn        RV n        R# )z)Unable to create key handler from mapping)r   FN)Zsuper__init__Zget_output_type_coder   _maps_to_active)selfr   r   r   _Zmaps_to	__class__s   &&&&, r   r   ZKeyHandler.__init__*   sE     	~>..0%;W   r   c                s     R V P                    2# )zKeyHandler to )r   r      &r   __str__ZKeyHandler.__str__;   s    //r   c                sJ    R \        V 4       R\        \        V 4      4       R2# )Z<z at Z>)ZstrZhexZidr   r   r   __repr__ZKeyHandler.__repr__>   s#    3t9+T#bh-22r   c                sz    \        V P                  !  pR V RV P                   RV P                  P                   2# )z	maps to: Z z on )r   r   r   target_uinput)r   Zname   & r   childZKeyHandler.childA   s8    &64&$--T\\5O5O4PQQr   c                s&   < V ^8  d   QhRS[ RS[/# )r   eventreturn)r	   boolr   r   r   r   r   F   s      J T r   c                s   . V P                   OVP                  N5p V P                  P                  W@P                  P
                  4       \        VP                  4      V n        R#   \        P                   d     R# i ; i)z%Inject event.value to the target key.TF)
r   Zvaluer   writer   r"   r'   r   r   ZError)r   r%   r   Z__event_tuples   &&*, r   notifyZKeyHandler.notifyF   sg    33u{{3	%%k<<3M3MN,DL 		s   A	A( (B Bc                s   < V ^8  d   QhRR/# )r   r&   N r   r   r   r   r   P   s     ! !t !r   c                s    \         P                  ! R 4       V P                  '       dJ   . V P                  O^ N5pV P                  P                  WP                  P                  4       RV n        R# R# )zresetting key_handlerFN)r
   Zdebugr   r   r   r(   r   r"   )r   r)   r#   r   resetZKeyHandler.resetP   sU    ,-<<<-DMM-1-K%%k<<3M3MN DL r   c                s    < V ^8  d   QhRS[ /# r   r&   )r'   r   r   r   r   r   W   s       r   c                s    R # )Tr+   r   r   r   needs_wrappingZKeyHandler.needs_wrappingW   s    r   c                s6   < V ^8  d   QhRS[ S[S[3,          /# r-   )r   r   r   r   r   r   r   r   Z   s"     P P4 0, >? Pr   c                sL    \        V P                  4      \        P                  /# )N)r   Zinput_configsr   r   r   r   r   	wrap_withZKeyHandler.wrap_withZ   s     !3!34l6N6NOOr   c                sH   < V ^8  d   Qh/ S[ ;R&   S[S[S[3,          ;R&   # )r   r   r   )r'   r    Zintr   r   r   r   r   $   s&      M  CHo	 r   )r   r   )Z__name__Z
__module__Z__qualname__Z__firstlineno__Z__doc__r   r    r!   Zpropertyr$   r*   r,   r.   r/   Z__annotate_func__Z__static_attributes__Z__classdictcell__Z__classcell__)r   r   s   @@r   r   r   $   sd     -
 "03 R R ! ! P Pm  r   r   N)Ztypingr    r   Zinputremapperr   Z"inputremapper.configs.input_configr   Zinputremapper.configs.mappingr   Zinputremapper.exceptionsr   Z&inputremapper.injection.global_uinputsr   Z8inputremapper.injection.mapping_handlers.mapping_handlerr   r   Zinputremapper.input_eventr	   Zinputremapper.logging.loggerr
   Zinputremapper.utilsr   r   r+   r   r   <module>r0      s7   (  $ ? 1 8 @ 1 / 77P 7Pr   