89 posts
Location
USA
Posted 15 April 2013 - 11:25 AM
how do you get input on mouse click from the monitor i know it possible because you can paint with the monitor i just can find the code to do it
1522 posts
Location
The Netherlands
Posted 15 April 2013 - 11:35 AM
Mouse clicking is only possible on an advanced computer.
This snippet will wait until a click:
local event, button, x, y = os.pullEvent('mouse_click')
Event is 'mouse_click'
button is wich butten you clicked -> 1 left; 2 right; 3 scroll thingie
x and y is the postion where is clicked on the screen
89 posts
Location
USA
Posted 15 April 2013 - 11:41 AM
its also possible on Adv, monitors too because you can paint on Adv. monitors with the program paint
131 posts
Location
I am omnipresent... DUH
Posted 15 April 2013 - 11:42 AM
To get clicks from an advanced monitor, do
local event, side, x, y = os.pullEvent("monitor_touch")
side -left, right, top, bottom, front, or back.
x - The x position of where the touched.
y - The y position of where the touched.
7508 posts
Location
Australia
Posted 15 April 2013 - 11:45 AM
the side in the monitor touch event is the side that the monitor is on the computer.
89 posts
Location
USA
Posted 15 April 2013 - 11:55 AM
To get clicks from an advanced monitor, do
local event, side, x, y = os.pullEvent("monitor_touch")
side -left, right, top, bottom, front, or back.
x - The x position of where the touched.
y - The y position of where the touched.
thanks