Garry's Mod Wiki

CMoveData:KeyPressed

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.

Special Pages


Wikis

?

Render Time: 56ms

DB GetPage 28
Generate Html 3
SaveChanges (1) 15
Render Body 0
Render Sidebar 8