View Issue Details

IDProjectCategoryView StatusLast Update
0005474Multi Theft Auto : San AndreasClientpublic2012-02-29 10:17
ReporterLordAzamathAssigned Tokevuwk 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version 
Target Version1.3.1Fixed in Version1.3.1 
Summary0005474: getKeyState does not differentiate between right and left keys (alt, ctrl, shift)
Description

Was doing some dx stuff which had to close on rshift. To my surprise it closed on lshift aswell, so I made some research.
When either lshift or rshift is pressed, both getKeyState("rshift") and getKeyState("lshift") return true
Same for lctrl, rctrl and ralt, lalt. Well right alt is actually alt gr, which returns true for all lctrl,rctrl,lalt,ralt. Left alt returns only for lalt and ralt.

Steps To Reproduce

addEventHandler("onClientRender",root,function ()
if getKeyState("rshift") then
outputChatBox("rshift")
end
if getKeyState("lshift") then
outputChatBox("lshift")
end

if getKeyState("ralt") then
    outputChatBox("ralt")
end
if getKeyState("lalt") then
    outputChatBox("lalt")
end
if getKeyState("rctrl") then
    outputChatBox("rctrl")
end
if getKeyState("lctrl") then
    outputChatBox("lctrl")
end

end)

TagsNo tags attached.

Activities

kevuwk

2012-02-29 10:17

administrator   ~~0016178

was fixed in r3863

Issue History

Date Modified Username Field Change