input.WasKeyTyped

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

Description

Returns whether the key is being held down or not.

This function only works in Move hooks, and will detect key events even in main menu or when a typing in a text field.

Arguments

number key

The key to test, see KEY_ Enums

Returns

boolean

Whether the key is being held down or not.
Personal tools
Navigation