input.LookupBinding

From Garry's Mod
Jump to: navigation, search
 input.LookupBinding( )

Contents

Description

Gets the match uppercase key for the specified binding.

Arguments

string binding

The binding name

Arguments

boolean exact=false

True if the binding should match exactly

Returns

string

The first key found with that binding or no value if no key with given binding was found.

See also input.GetKeyCode.

Examples

Example

Demonstrates usage of this function and its arguments.

print( input.LookupBinding( "+use" ) )
print( input.LookupBinding( "use" ) )
print( input.LookupBinding( "+use", true ) )
print( input.LookupBinding( "use", true ) )

Output:

e
e
e
no value
Personal tools
Navigation