IsKeyPressed (Harvest)
From OxeyeWiki
(Difference between revisions)
(Created page with '{{HarvestMethod | isKeyPressed(virtualScanCode) | Returns whether a key is pressed or not, using virtual scan codes. | {{MethodParam|virtualScanCode|unknown|}} | Returns whether ...') |
|||
| Line 13: | Line 13: | ||
local isShiftPressed = harvest.isKeyPressed(virtualScanCode) | local isShiftPressed = harvest.isKeyPressed(virtualScanCode) | ||
</pre> | </pre> | ||
| + | |||
| + | === Resources === | ||
| + | *[http://www.oxeyegames.com/forum/viewtopic.php?p=1523#p1523 Oxeye Game Studio Forum - Harvest Functions] | ||
Latest revision as of 16:16, 2 December 2009
|
isKeyPressed(virtualScanCode) | ||
|
Returns whether a key is pressed or not, using virtual scan codes. | ||
| Parameter | Expected Type | Description |
| virtualScanCode | unknown | |
| Returns | ||
|
Returns whether a key is pressed or not. The value is of the type Boolean. | ||
Example
local isShiftPressed = harvest.isKeyPressed(virtualScanCode)