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: 35ms

DB GetPage 2
Generate Html 10
SaveChanges (1) 10
Render Body 0
Render Sidebar 10