Difference between revisions of "Talk:GetNumKeysPressed"

Jump to navigation Jump to search
952 bytes added ,  19:08, 3 August 2008
Note on disabled keys
imported>Haama
(A bit buggy?)
 
imported>Haama
(Note on disabled keys)
Line 1: Line 1:
== Detecting Disabled Keys ==
It could be possible that the function can detect some disabled keys, but not all. A bit of history from scruggsy
IsKeyPressed used GetAsyncKeyState, which supports LMB, RMB, and MMB only. The second batch of input functions from Timeslip all use DirectInput which supports extra mouse buttons. The third batch (IsKeyPressed3/OnControlDown/etc) use DirectInput for mouse and GetAsyncKeyState for keyboard.
GetNumKeysPressed is part of the second batch, along with IsKeyPressed2, so I'd assume it can't pick up on disabled keys. However, I didn't ask if it was updated to use GetAsyncKeyState so it might be able to detect disabled keys now (v14, maybe v15). Another thing to note - the third batch used different systems for mouse keys and keybaord keys, so it could be disabled mouse keys can't be detected but keyboard keys can.--[[User:Haama|Haama]] 20:08, 3 August 2008 (EDT)
== Detecting Repeatedly Pressed Keys ==
This function seems not=so-good when tapping a key (in RL, not via script, oh my!). I tried to create a Double-click script using this as an if-gate
This function seems not=so-good when tapping a key (in RL, not via script, oh my!). I tried to create a Double-click script using this as an if-gate
<pre>;Double-click timer
<pre>;Double-click timer
Anonymous user

Navigation menu