No xbox controller input in Win10 UWP without mouse input

When a Win10 UWP build on a PC with no touch input is started xbox controller input is not detected until the mouse is moved. How can I simulate a mouse move to get round this bug?

We detect mouse presence on first mouse event, so that might be related. Are you using the controller to simulate mouse?

We’re using the joysticks (left and right) via the input manager to control GUI menu navigation and scrolling up/down lists. Also using the triggers and buttons but the issue is that until the mouse is moved Joystick Axis (Y axis) doesn’t seem to receive input. In the Editor it seems to work fine - maybe that is because we’re moving the mouse when we press the play/start button. Once the mouse has been moved it works mostly ok in a x86 built (x64 builds seem to do all sorts of weird stuff with the right joystick on Xbox One controllers - but that’s another story).

Mouse presence detection by first event is specific for Windows Store Apps, as there is no reliable API for that.
Can you make a simple repro project and submit a bug?
Thanks.

The issue is with the Standalone Input Module. If the Vertical Axis is set to a joystick (xbox controller left joy Y), until the mouse is moved nothing happens.

If I tick “Force Module Active” for the Standalone Input Module it works. But we really should test for mouse or touch using UserInteractionMode but I couldn’t get the following code to build in Unity

    public bool IsWindows10UserInteractionModeTouch
    {
        get
        {
            bool isInTouchMode = false;
            #if UNITY_WSA_10_0 && NETFX_CORE
            UnityEngine.WSA.Application.InvokeOnUIThread(() =>
            {
                isInTouchMode = (UIViewSettings.GetForCurrentView().UserInteractionMode == UserInteractionMode.Touch);
            }, true);       
            #endif
            return isInTouchMode;
        }
    }

I was missing the using references…

#if UNITY_WSA_10_0 && NETFX_CORE
using Windows.UI.Xaml;
using Windows.UI.ViewManagement;
#endif

That clarifies things a lot.
Could you report a bug with a simple repro project attached? Also add a link to this conversation.
Thanks.

I lodged the bug earlier (744247). I don’t seem to be able to update it after the fact.