Advertisement
BOF007

CC pullevent reader

Nov 30th, 2015
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.41 KB | None | 0 0
  1. event, p1, p2, p3, p4 = os.pullEvent()
  2.  
  3. if p4 == true then
  4.     print("Event: "..event.." P1: "..p1.." P2: "..p2.." P3: "..p3.." P4: "..p4)
  5.  elseif p3 == true then
  6.      print("Event: "..event.." P1: "..p1.." P2: "..p2.." P3: "..p3)
  7.  elseif p2 == true then
  8.      print("Event: "..event.." P1: "..p1.." P2: "..p2)
  9.  elseif p1 == true then
  10.      print("Event: "..event.." P1: "..p1)
  11.  else
  12.     print("error")
  13. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement