Search Unity

CrossPlatformInput Joystick OnDrag never called on Windows Phone

Discussion in 'Windows' started by AiRobotMedia, Aug 3, 2018.

  1. AiRobotMedia

    AiRobotMedia

    Joined:
    Jun 13, 2018
    Posts:
    61
    Hi All

    I have been trying to work out why the standard assets joystick does not work in a UWP windows mobile app.

    The phone is in good working condition and works perfectly. Its a 650 windows 10, 1GB Ram.

    The mobile controls show up and work in the editor. When i deploy to the windows phone via Visual Studio the joysticks show up but do not move.

    Ive tried it with D3D and Xaml, .net and IL2CPP scripting backends.

    The scene does have an Event System.

    I added a script to find out what was happening, to output variables to the screen from the joystick script. In the Joystick script the onDrag Event is never called.The last variable in the screenshot should be true if OnDrag is called.

     
  2. AiRobotMedia

    AiRobotMedia

    Joined:
    Jun 13, 2018
    Posts:
    61
    Here are all assets used in the test project.
     

    Attached Files:

  3. AiRobotMedia

    AiRobotMedia

    Joined:
    Jun 13, 2018
    Posts:
    61
    I should add that I am using Unity 2108.2.1f1, Visual studio 15.7.6
     
  4. AiRobotMedia

    AiRobotMedia

    Joined:
    Jun 13, 2018
    Posts:
    61
    It seems to be a performance issue with the game produced by new Unity 2018.2 version.

    The controls are working its just the game is lagging so badly that its not responding.
     
  5. AiRobotMedia

    AiRobotMedia

    Joined:
    Jun 13, 2018
    Posts:
    61
    Tried deploying on Android. The joysticks just don't work.
     
  6. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    6,426
    It doesn't work on Android either? Could we get a bug report on this issue?

    Regarding performance issue in 2018.2: we dropped support for GPUs that don't support DirectX 11 Feature Level 10.0 due to low and decreasing market share and no new devices being released for over 3 years. The phone you mentioned supports feature level 9.3, so it's falling back to CPU rendering.
     
  7. AiRobotMedia

    AiRobotMedia

    Joined:
    Jun 13, 2018
    Posts:
    61
    No bug in cross platform input. It was an issue with my camera script being incompatible with cross platform input.

    Used the standard input camera scripts and the issue went away. Have not tested on windows mobile yet, expect that problem to go away too.

    Issue was very hard to track down since it only happened on the device(s).

    thanks for the help.