Advertisement
hevohevo

CC: pocket5

Apr 26th, 2016
264
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.21 KB | None | 0 0
  1. -- pocket5
  2. -- イベントハンドラの使い方(画面クリックイベント)
  3.  
  4. while true do
  5.   local event, button, x, y = os.pullEvent("mouse_click")
  6.   print(event)
  7.   print(button)
  8.   print(x, y)
  9. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement