Garry's Mod Wiki

Garry's Mod Wiki

  boolean input.WasKeyReleased( number key )

Description

Returns whether a key was released in the same frame this function was called.

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

Arguments

1 number key
The key, see KEY enum.

Returns

1 boolean
True if the key was released the same frame that this function was called, false otherwise.

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...