Exemple #1
0
            internal static unsafe void Invoke(ESteamVRTouchDPadMapping NewMapping)
            {
                long *p = stackalloc long[] { 0L, 0L };
                byte *b = (byte *)p;

                *(b + 0) = (byte)NewMapping;
                Main.GetProcessEvent(SteamVRControllerLibrary.DefaultObject, SetTouchDPadMapping_ptr, new IntPtr(p));;
            }
        }
 ///<summary>
 ///Sets which input events you want associated with the SteamVR controller's
 ///directional touchpad buttons - does so for both left and right controllers.
 ///</summary>
 ///<remarks>
 ///@param  NewMapping   Defines the set of input events you want associated with the four directional touchpad buttons.
 ///</remarks>
 public static void SetTouchDPadMapping(ESteamVRTouchDPadMapping NewMapping) =>
 SteamVRControllerLibrary_methods.SetTouchDPadMapping_method.Invoke(NewMapping);