Difference between revisions of "GetNumKeysPressed"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>Haama
(Fixed syntax)
imported>Quetzilla
Line 9: Line 9:


* This function will not pick up mouse buttons.
* This function will not pick up mouse buttons.
* This function will not pick up keys disabled with DisableKey. (DisableControl was not tested but should work the same way.)
* 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.



Revision as of 22:26, 9 January 2008

A command for Oblivion Script Extender

Syntax:

(count:long) GetNumKeysPressed

Retrieves the number of keyboard keys currently being pressed.

Notes

  • This function will not pick up mouse buttons.
  • This function will not pick up keys disabled with DisableKey. (DisableControl was not tested but should work the same way.)
  • 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