API reference
Preparing search index…

ImGui.IsMousePosValid

  • Test whether a mouse position is valid.

    Parameters

    mouse_pos
    null | Float32Array = null

    Optional Float32Array [x,y] screen position to test; null tests the current mouse position. Pass Float32Array storage, not a JS scalar; native access uses the supplied backing memory.

    Returns

    boolean

    True if the supplied or current mouse position is valid rather than the unavailable-position sentinel; false otherwise.

    by convention we use (-3.4028234663852886e+38,-3.4028234663852886e+38) to denote that there is no mouse available

    Source & inheritance

Icons made by Lorc, Delapouite & Skoll · game-icons.net · CC BY 3.0