def get_mouse_state() -> MouseState:
    """Return the current state of the mouse.

    .. addedversion:: 9.3
    """
    xy = tcod.ffi.new("int[2]")
    buttons = tcod.lib.SDL_GetMouseState(xy, xy + 1)
    x, y = _pixel_to_tile(*xy)
    return MouseState((xy[0], xy[1]), (int(x), int(y)), buttons)
def get_mouse_state ( ) -> MouseState : xy = tcod . ffi . new ( "int[2]" ) buttons = tcod . lib . SDL_GetMouseState ( xy , xy + 1 ) x , y = _pixel_to_tile ( * xy ) return MouseState ( ( xy [ 0 ] , xy [ 1 ] ) , ( int ( x ) , int ( y ) ) , buttons )
Return the current state of the mouse.

    .. addedversion:: 9.3