monitor_touch event
Occurs every time a player right clicks on an advanced monitor.
monitor_touch Event | |
---|---|
Returns
| |
Source | CC:Tweaked |
|
|||
Prints the touched coordinates every time a player touches a connected Advanced Monitor. | |||
Code | <nowiki>
while true do
local event, peripheral_name, x, y = os.pullEvent("monitor_touch")
print("A monitor has been pressed at " .. x .. ", " .. y)
end
</nowiki>
|
This article is issued from Computercraft. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.