<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 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)