Search Unity

Detecting mouse events on Xbox

Discussion in 'Windows' started by SirMikeTkou, Sep 9, 2019.

  1. SirMikeTkou

    SirMikeTkou

    Joined:
    Nov 2, 2016
    Posts:
    1
    Hello,

    is there a way to get any data from a mouse connected to an Xbox, running a UWP build?

    I've tried built-in Unity methods / fields - "GetMouseButton", "anyKey" etc. but to no avail. Is there any specific library I could use to make it work?

    I'm using Unity 2018.3.14f1 and D3D build type.

    Thanks

    Mike
     
  2. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,674
    I don't believe UWP programs are allowed to read mouse input on Xbox One. Is there a specific reason you want to do this?

    Did you try XAML build?
     
  3. timke

    timke

    Joined:
    Nov 30, 2017
    Posts:
    407
    From the Microsoft developer forums: https://forum.unity.com/threads/detecting-mouse-events-on-xbox.742325/#post-4947713

    From the Xbox support: https://support.xbox.com/en-US/xbox-one/ease-of-access/mouse-keyboard

    So yeah, seems like you can't use a mouse with Xbox One unless your app/title has been given specific permission by Microsoft.