code: def _pixel_to_tile(x: float, y: float) -> Tuple[float, float]:
      
      xy = tcod.ffi.new("double[2]", (x, y))
      tcod.lib.TCOD_sys_pixel_to_tile(xy, xy + 1)
      return xy[0], xy[1]
docs: Convert pixel coordinates to tile coordinates.