Garry's Mod Wiki

Garry's Mod Wiki

  boolean input.WasKeyTyped( number key )

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

1 number key
The key to test, see KEY enum

Returns

1 boolean
Whether the key is being held down or not.

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...