Advertisement
Guest User

Untitled

a guest
May 27th, 2015
272
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.75 KB | None | 0 0
  1. function OnEvent(event, gkey, family)
  2.     OutputLogMessage("event = %s, arg = %s, fam = %s\n", event, gkey, family)
  3. --    OutputDebugMessage("event = %s, arg = %s, fam = %s\n", event, gkey, family)
  4.     mkey = GetMKeyState()
  5.     if gkey == 18 and mkey == 1 then
  6.         if event == "G_PRESSED" then
  7.             OutputDebugMessage("TS3_PTT_ACTIVATE")
  8.         end
  9.         if event == "G_RELEASED" then
  10.             OutputDebugMessage("TS3_PTT_DEACTIVATE")
  11.         end
  12.     end
  13.     if gkey == 11 and family == "mouse" then
  14.         if event == "MOUSE_BUTTON_PRESSED" then
  15.             OutputDebugMessage("TS3_PTT_ACTIVATE")
  16.         end
  17.         if event == "MOUSE_BUTTON_RELEASED" then
  18.             OutputDebugMessage("TS3_PTT_ACTIVATE")
  19.         end
  20.     end
  21. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement