Exemplo n.º 1
0
        /// <summary>
        /// Return an absolute path to the SVF image glyph for the provided digital action name. The current
        /// action set in use for the controller will be used for the lookup. You should cache the result and
        /// maintain your own list of loaded PNG assets.
        /// </summary>
        public static string GetSvgActionGlyph(Controller controller, string action)
        {
            InputActionOrigin origin = InputActionOrigin.None;

            Internal.GetDigitalActionOrigins(controller.Handle, Internal.GetCurrentActionSet(controller.Handle), GetDigitalActionHandle(action), ref origin);

            return(Internal.GetGlyphSVGForActionOrigin(origin, 0));
        }
Exemplo n.º 2
0
        internal int GetAnalogActionOrigins(InputHandle_t inputHandle, InputActionSetHandle_t actionSetHandle, InputAnalogActionHandle_t analogActionHandle, ref InputActionOrigin originsOut)
        {
            var returnValue = _GetAnalogActionOrigins(Self, inputHandle, actionSetHandle, analogActionHandle, ref originsOut);

            return(returnValue);
        }
Exemplo n.º 3
0
 private static extern int _GetAnalogActionOrigins(IntPtr self, InputHandle_t inputHandle, InputActionSetHandle_t actionSetHandle, InputAnalogActionHandle_t analogActionHandle, ref InputActionOrigin originsOut);
 internal InputActionOrigin TranslateActionOrigin(InputType eDestinationInputType, InputActionOrigin eSourceOrigin)
 {
     return(_TranslateActionOrigin(Self, eDestinationInputType, eSourceOrigin));
 }
 internal string GetStringForActionOrigin(InputActionOrigin eOrigin)
 {
     return(_GetStringForActionOrigin(Self, eOrigin));
 }
 internal int GetAnalogActionOrigins(InputHandle_t inputHandle, InputActionSetHandle_t actionSetHandle, InputAnalogActionHandle_t analogActionHandle, ref InputActionOrigin originsOut)
 {
     return(_GetAnalogActionOrigins(Self, inputHandle, actionSetHandle, analogActionHandle, ref originsOut));
 }
Exemplo n.º 7
0
        public int GetDigitalActionOrigins(InputHandle_t inputHandle, InputActionSetHandle_t actionSetHandle, InputDigitalActionHandle_t digitalActionHandle, ref InputActionOrigin originsOut)
        {
            var returnValue = _GetDigitalActionOrigins(Self, inputHandle, actionSetHandle, digitalActionHandle, ref originsOut);

            return(returnValue);
        }
Exemplo n.º 8
0
 private static extern InputActionOrigin _TranslateActionOrigin(IntPtr self, InputType eDestinationInputType, InputActionOrigin eSourceOrigin);
Exemplo n.º 9
0
        internal string GetGlyphForActionOrigin_Legacy(InputActionOrigin eOrigin)
        {
            var returnValue = _GetGlyphForActionOrigin_Legacy(Self, eOrigin);

            return(returnValue);
        }
Exemplo n.º 10
0
 private static extern Utf8StringPointer _GetGlyphForActionOrigin_Legacy(IntPtr self, InputActionOrigin eOrigin);
Exemplo n.º 11
0
        internal string GetGlyphSVGForActionOrigin(InputActionOrigin eOrigin, uint unFlags)
        {
            var returnValue = _GetGlyphSVGForActionOrigin(Self, eOrigin, unFlags);

            return(returnValue);
        }
Exemplo n.º 12
0
 private static extern Utf8StringPointer _GetGlyphSVGForActionOrigin(IntPtr self, InputActionOrigin eOrigin, uint unFlags);
Exemplo n.º 13
0
        public string GetGlyphForActionOrigin(InputActionOrigin eOrigin)
        {
            var returnValue = _GetGlyphForActionOrigin(Self, eOrigin);

            return(returnValue);
        }
Exemplo n.º 14
0
 public static extern Utf8StringPointer _GetGlyphForActionOrigin(IntPtr self, InputActionOrigin eOrigin);
Exemplo n.º 15
0
 private static extern Utf8StringPointer _GetStringForActionOrigin(IntPtr self, InputActionOrigin eOrigin);
Exemplo n.º 16
0
        internal string GetStringForActionOrigin(InputActionOrigin eOrigin)
        {
            var returnValue = _GetStringForActionOrigin(Self, eOrigin);

            return(returnValue);
        }
Exemplo n.º 17
0
 internal int GetDigitalActionOrigins(InputHandle_t inputHandle, InputActionSetHandle_t actionSetHandle, InputDigitalActionHandle_t digitalActionHandle, ref InputActionOrigin originsOut)
 {
     return(_GetDigitalActionOrigins(Self, inputHandle, actionSetHandle, digitalActionHandle, ref originsOut));
 }
Exemplo n.º 18
0
        internal InputActionOrigin TranslateActionOrigin(InputType eDestinationInputType, InputActionOrigin eSourceOrigin)
        {
            var returnValue = _TranslateActionOrigin(Self, eDestinationInputType, eSourceOrigin);

            return(returnValue);
        }
Exemplo n.º 19
0
 public static extern int _GetDigitalActionOrigins(IntPtr self, InputHandle_t inputHandle, InputActionSetHandle_t actionSetHandle, InputDigitalActionHandle_t digitalActionHandle, ref InputActionOrigin originsOut);