Difference between revisions of "Talk:GetNumKeysPressed"

156 bytes added ,  09:59, 4 August 2008
m
no edit summary
imported>Quetzilla
m
imported>Quetzilla
m
 
Line 3: Line 3:
  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.
  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)
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)
:I have been using both [[GetNumKeysPressed]] and [[GetNumMouseButtonsPressed]] with 0015 and they definitely pick up disabled mouse buttons (in fact the mod is sort of dependent on disabling LMB in the container menu and then catching the mouse click for it with both [[GetNumMouseButtonsPressed]] and [[GetMouseButtonPress]].  I don't specifically remember testing actual keys but I will test again next chance I get.--[[User:Quetzilla|Quetzilla]] 10:57, 4 August 2008 (EDT)
:I have been using both [[GetNumKeysPressed]] and [[GetNumMouseButtonsPressed]] with 0015 and they definitely pick up disabled mouse buttons (in fact the mod is sort of dependent on disabling LMB in the container menu and then catching the mouse click for it with both [[GetNumMouseButtonsPressed]] and [[GetMouseButtonPress]].  I don't specifically remember testing actual keys but I will test again next chance I get. Also will check extra mouse buttons (well, scrollwheel, my mouse software doesn't recognize the extra buttons properly for DirectInput - stupid logitech.)--[[User:Quetzilla|Quetzilla]] 10:57, 4 August 2008 (EDT)




Anonymous user