Garry's Mod Wiki

CMoveData:KeyPressed

boolean CMoveData:KeyPressed( number key )

Description

Returns whether the key was pressed. If you want to check if the key is held down, try CMoveData:KeyDown

Arguments

1 number key
The key to test, see Enums/IN

Returns

1 boolean
Was the key pressed or not.

Page Links


Special Pages


Wikis

?

Render Time: 31ms

DB GetPage 2
Generate Html 6
SaveChanges (1) 8
Render Body 0
Render Sidebar 12