Skip to content

Commit

Permalink
0.12.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Buizz committed Jul 8, 2021
1 parent 75dabdf commit aeedb18
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions EUD Editor 3/Data/Lua/TriggerEditor/msqcTool.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
function KeyParse(Key)
index = string.find("NUMPAD*NUMPAD+NUMPAD-NUMPAD.NUMPAD/*+-./=,`[]\\'", Key)
if index ~= nii then
Key = "SP" .. index
end

return Key
end



--[================================[
@Language.ko-KR
@Summary
Expand All @@ -20,7 +31,7 @@
]================================]
function KeyDown(Player, Key)
Player = ParsePlayer(Player)
keyarray = "VKeyDown_" .. Key
keyarray = "VKeyDown_" .. KeyParse(Key)
--AddMSQCPlugin("NotTyping ; KeyDown(" .. Key .. ") : " .. keyarray .. ", 1")
AddMSQCPlugin(Key, keyarray, "KeyDown", "NotTyping")

Expand Down Expand Up @@ -50,7 +61,7 @@ end
]================================]
function KeyUp(Player, Key)
Player = ParsePlayer(Player)
keyarray = "VKeyUp_" .. Key
keyarray = "VKeyUp_" .. KeyParse(Key)
--AddMSQCPlugin("NotTyping ; KeyDown(" .. Key .. ") : " .. keyarray .. ", 1")
AddMSQCPlugin(Key, keyarray, "KeyUp", "NotTyping")

Expand Down Expand Up @@ -80,7 +91,7 @@ end
]================================]
function KeyPress(Player, Key)
Player = ParsePlayer(Player)
keyarray = "VKeyPress_" .. Key
keyarray = "VKeyPress_" .. KeyParse(Key)
--AddMSQCPlugin("NotTyping ; KeyDown(" .. Key .. ") : " .. keyarray .. ", 1")
AddMSQCPlugin(Key, keyarray, "KeyPress", "NotTyping")

Expand Down

0 comments on commit aeedb18

Please sign in to comment.