Source code for replay_wizard.models.mouse

"""
Mouse actions
"""
from enum import Enum
from .action import Action


[docs] class Button(str, Enum): """ Mouse button """ LEFT = 'left' RIGHT = 'right'
[docs] class MouseAction(Action): """ Mouse Action """ x: int y: int subtype: str = 'MouseAction'
[docs] class ScrollAction(MouseAction): """ Scroll mouse action """ dx: int dy: int subtype: str = 'ScrollAction'
[docs] class ClickAction(MouseAction): """ Click mouse action """ button: Button pressed: bool subtype: str = 'ClickAction'