Skip to main content

MouseIn

Callable

  • MouseIn(Left: number, Top: number, Width: number, Height: number): boolean

  • Check if the mouse position is within the boundaries of a given zone (Useful for UI components)


    Parameters

    • Left: number

      Starting position on the X axis

    • Top: number

      Starting position on the Y axis

    • Width: number

      Width of the zone

    • Height: number

      Height of the zone

    Returns boolean

    • Returns TRUE if the click occurred in the given zone