Garry's Mod Wiki

input.LookupBinding

string input.LookupBinding( string binding, boolean exact = false )

Description

Gets the match uppercase key for the specified binding.

Arguments

1 string binding
The binding name
2 boolean exact = false
True if the binding should match exactly

Returns

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

See also input.GetKeyCode.

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

Page Links


Special Pages


Wikis

?

Render Time: 96ms

DB GetPage 10
Generate Html 11
SaveChanges (1) 57
Render Body 0
Render Sidebar 15