Ejemplo n.º 1
0
 static void RegisterLayouts()
 {
     Inputs.RegisterLayout <HandheldARInputDevice>(
         matches: new InputDeviceMatcher()
         .WithInterface(XRUtilities.kXRInterfaceMatchAnyVersion)
         .WithProduct("(ARCore)")
         );
 }
        public static void SelfRegister()
        {
            InputDeviceMatcher matcher = new InputDeviceMatcher().
                                         WithInterface("HID").
                                         WithCapability("vendorId", 0x0f0d).
                                         WithCapability("productId", 0xc1);

            InputSystem.RegisterLayout <HORIPADSwitchController>("HORIPAD Switch Controller", matches: matcher);
        }
Ejemplo n.º 3
0
        public static void SelfRegister()
        {
            InputDeviceMatcher matcher = new InputDeviceMatcher().
                                         WithInterface("HID").
                                         WithCapability("vendorId", 0x20d6).
                                         WithCapability("productId", 0xa711);

            InputSystem.RegisterLayout <PowerACorePlusController>("PowerA Core (Plus) Controller", matches: matcher);
        }
Ejemplo n.º 4
0
        public static void SelfRegister()
        {
            var mayflashAdapter = new InputDeviceMatcher().WithInterface("HID").WithCapability("vendorId", 0x0079);

            InputSystem.RegisterLayout <GameCubeController>(matches: mayflashAdapter);

            var weeWuGCAdapter = new InputDeviceMatcher().WithInterface("HID").WithCapability("vendorId", 0x057E).WithProduct("0x0337");

            InputSystem.RegisterLayout <GameCubeController>(matches: weeWuGCAdapter);
        }
Ejemplo n.º 5
0
        static void RegisterLayouts()
        {
            if (!Api.AtLeast11_0())
            {
                return;
            }

            Inputs.RegisterLayout <HandheldARInputDevice>(
                matches: new InputDeviceMatcher()
                .WithInterface(XRUtilities.InterfaceMatchAnyVersion)
                .WithProduct("(ARKit)")
                );
        }
Ejemplo n.º 6
0
        static void RegisterLayouts()
        {
            if (!Api.platformAndroid || !Api.loaderPresent)
            {
                return;
            }

            Inputs.RegisterLayout <HandheldARInputDevice>(
                matches: new InputDeviceMatcher()
                .WithInterface(XRUtilities.InterfaceMatchAnyVersion)
                .WithProduct("(ARCore)")
                );
        }
Ejemplo n.º 7
0
        static LaunchControlXLDevice()
        {
            InputSystem.RegisterLayout <LaunchControlXLDevice>();

            InputSystem.onBeforeUpdate += CreateDevice;
        }