Garry's Mod Wiki

Revision Difference

input.WasKeyReleased#511707

<function name="WasKeyReleased" parent="input" type="libraryfunc">⤶ <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.⤶ </description>⤶ <realm>Client and Menu</realm>⤶ <args>⤶ <arg name="key" type="number">The key, see &lt;page&gt;KEY&lt;/page&gt;.</arg>⤶ </args>⤶ <rets>⤶ <ret name="" type="boolean">True if the key was released the same frame that this function was called, false otherwise.</ret>⤶ </rets>⤶ </function>⤶ ⤶