UTIL ReplaceKeyBindings: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page.)
 
No edit summary
 
Line 1: Line 1:
A [[UTIL]] function that looks up key bindings (indicated with <code>%<command>%</code>) for commands and replaces them with the key bound to them, in string.
{{lang|UTIL ReplaceKeyBindings|title=<code>UTIL_ReplaceKeyBindings</code>}}
 
{{ent|UTIL_ReplaceKeyBindings}} is a [[UTIL]] function that looks up key bindings (marked with <code>%<command>%</code>) for commands and replaces them with the key bound to them, in string.
{{note|Input buffer sizes are in bytes rather than unicode character count.}}
{{note|Input buffer sizes are in bytes rather than unicode character count.}}
 
==Declaration==
==Usage==
<source lang=cpp>
<source lang=cpp>
void UTIL_ReplaceKeyBindings( const wchar_t *inbuf, int inbufsizebytes, OUT_Z_BYTECAP(outbufsizebytes) wchar_t *outbuf, int outbufsizebytes )
void UTIL_ReplaceKeyBindings( const wchar_t *inbuf, int inbufsizebytes, OUT_Z_BYTECAP(outbufsizebytes) wchar_t *outbuf, int outbufsizebytes );
</source>
</source>


==Examples==
==Examples==
{{todo|Add examples.}}
{{todo|Add examples.}}
 
[[Category:Programming]]
[[Category:UTIL]]
[[Category:UTIL]]

Latest revision as of 22:34, 2 November 2021

English (en)Translate (Translate)

UTIL_ReplaceKeyBindings is a UTIL function that looks up key bindings (marked with %<command>%) for commands and replaces them with the key bound to them, in string.

Note.pngNote:Input buffer sizes are in bytes rather than unicode character count.

Declaration

void UTIL_ReplaceKeyBindings( const wchar_t *inbuf, int inbufsizebytes, OUT_Z_BYTECAP(outbufsizebytes) wchar_t *outbuf, int outbufsizebytes );

Examples

Todo: Add examples.