Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

[WebGL] Input.mousePresent = true on iPad

Discussion in 'Web' started by mnml_, Oct 16, 2015.

  1. mnml_

    mnml_

    Joined:
    Jun 17, 2015
    Posts:
    44
    Input.mousePresent = true on iPad, where there is no mouse but only touch.

    even thou i set
    Code (CSharp):
    1. Input.simulateMouseWithTouches = false;
    even worse: when i interact with the html (partly overlapping the gl-content)
    the Input.mousePosition has values infered from the touches.

    can i detect in webgl if there's a _real_ mouse present somehow?

    who simulates the mouse in this case (safari/unity)?
     
  2. Marco-Trivellato

    Marco-Trivellato

    Unity Technologies

    Joined:
    Jul 9, 2013
    Posts:
    1,654
    I don't think it's the browser that emulates mouse events, more likely this is Unity (Emscripten, to be specific).

    We don't officially support mobile platforms so issues like this one don't come as a surprise. Having said that, if you file a bug we'll try to find a solution.