Search Unity

Input.mousePresent page missing description and not linked

Discussion in 'Documentation' started by CanisLupus, Aug 1, 2014.

  1. CanisLupus

    CanisLupus

    Joined:
    Jul 29, 2013
    Posts:
    427
    The page for Input.mousePresent is missing a description and, perhaps because of that, isn't linked to the Input page. See: http://docs.unity3d.com/ScriptReference/Input-mousePresent.html and http://docs.unity3d.com/ScriptReference/Input.html.

    I found out about this attribute yesterday. If it does what I think it does, we can use it to disable hover events when a mouse is not detected (i.e. touch screen only). Some platforms are able to use touch AND mouse, so simply using the active platform (RuntimePlatform or platform-dependent compilation) to enable/disable hover is not enough.

    I would also like to ask what is the official behavior of this attribute. Does it update when a mouse is connected/disconnected on, for example, a Microsoft Surface device?