Difference between revisions of "GetNumKeysPressed"
Jump to navigation
Jump to search
imported>Timeslip (New obse function) |
imported>Quetzilla |
||
(7 intermediate revisions by 4 users not shown) | |||
Line 2: | Line 2: | ||
'''Syntax:''' | '''Syntax:''' | ||
GetNumKeysPressed | (count:long) GetNumKeysPressed | ||
Retrieves the number of keyboard keys currently being pressed. | Retrieves the number of keyboard keys currently being pressed. | ||
==Notes== | ==Notes== | ||
* This function will count keys disabled with [[DisableKey]] or [[DisableControl]]. | |||
* This function will not count mouse buttons. Use [[GetNumMouseButtonsPressed]] instead. | |||
* Most keyboards can only keep track of a limited number of keys, and may return incorrect results for certain combinations of keys. This function will always accurately reflect how many keys direct input, and hence oblivion, can see as being pressed, but may not always reflect what the player is actually doing. | * Most keyboards can only keep track of a limited number of keys, and may return incorrect results for certain combinations of keys. This function will always accurately reflect how many keys direct input, and hence oblivion, can see as being pressed, but may not always reflect what the player is actually doing. | ||
==See Also== | ==See Also== | ||
*[[GetKeyPress]] | |||
*[[GetNumMouseButtonsPressed]] | |||
<!--[[Category: OBSE Functions]] | |||
[[Category: OBSE Input Functions]]--> | |||
[[Category: OBSE Functions]] | [[Category: Functions]] | ||
[[Category: | [[Category: Functions (OBSE)]] | ||
[[Category: Input Functions]] | |||
[[Category: Input Functions (OBSE)]] |
Latest revision as of 16:50, 3 August 2008
A command for Oblivion Script Extender
Syntax:
(count:long) GetNumKeysPressed
Retrieves the number of keyboard keys currently being pressed.
Notes[edit | edit source]
- This function will count keys disabled with DisableKey or DisableControl.
- This function will not count mouse buttons. Use GetNumMouseButtonsPressed instead.
- Most keyboards can only keep track of a limited number of keys, and may return incorrect results for certain combinations of keys. This function will always accurately reflect how many keys direct input, and hence oblivion, can see as being pressed, but may not always reflect what the player is actually doing.