Marlingaming

Graphics Handler

Apr 8th, 2022 (edited)
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. local tArg = {...}
  2.  
  3. local Video
  4. local frame
  5. local X
  6. local Y
  7.  
  8. function Loop()
  9. while true do
  10. local event, a, b, c, d = os.pullEvent()
  11. if event == "system_graphic" then
  12. if a == "play" then
  13. Video = b
  14. X = d
  15. Y = e
  16. frame = c
  17.  
  18. elseif a == "stop" then
  19.  
  20. elseif a == "resume" then
  21.  
  22. elseif a == "close" then
  23.  
  24. Video = nil
  25. X = nil
  26. Y = nil
  27. frame = nil
  28. end
  29. else
  30.  
  31. end
  32. end
  33. end
  34.  
  35. if tArg[1] == "start" then
  36. Loop()
  37. end
Add Comment
Please, Sign In to add comment