示例#1
0
        /// <summary>
        /// Return an absolute path to the PNG 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 GetPngActionGlyph(Controller controller, string action, GlyphSize size)
        {
            InputActionOrigin origin = InputActionOrigin.None;

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

            return(Internal.GetGlyphPNGForActionOrigin(origin, size, 0));
        }
示例#2
0
        internal string GetGlyphPNGForActionOrigin(InputActionOrigin eOrigin, GlyphSize eSize, uint unFlags)
        {
            var returnValue = _GetGlyphPNGForActionOrigin(Self, eOrigin, eSize, unFlags);

            return(returnValue);
        }
示例#3
0
 private static extern Utf8StringPointer _GetGlyphPNGForActionOrigin(IntPtr self, InputActionOrigin eOrigin, GlyphSize eSize, uint unFlags);