View Single Post
Old 01-28-2020, 04:49 AM   #929
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 2,174
Default

How to know if particular keys are being held down during defer?


Example/pseudo code:
Code:
function main()
  --[[
  OK = check if alt + shift are being pressed
  --]]
  if OK then
    reaper.defer(main)
  else
    reaper.ShowConsoleMsg("You released Alt+Shift")
    return
  end
end
amagalma is offline   Reply With Quote