This is a read-only snapshot of the ComputerCraft forums,
taken in April 2020.
New touchscreen monitors?
Started by gknova61, 26 December 2012 - 11:22 AMPosted 26 December 2012 - 12:22 PM
Can someone explain to me how the mouse_drag, click etc. events get passed from the new touchscreen monitors get passed to a computer and maybe a sample program?
Posted 26 December 2012 - 12:29 PM
Right-clicking a monitor does the same as left-clicking a console window. Pretty much any program that uses clicks will be able to use the new advanced monitors.
Posted 26 December 2012 - 01:33 PM
although right clicking on a monitor counts as 2 left clicks on a terminal
Posted 26 December 2012 - 01:58 PM
This, yeah. Is this a bug?although right clicking on a monitor counts as 2 left clicks on a terminal
Posted 26 December 2012 - 02:20 PM
This, yeah. Is this a bug?although right clicking on a monitor counts as 2 left clicks on a terminal
it is, its not that big of a deal, just gets annoying for me when i try use my OS on it
Posted 26 December 2012 - 04:13 PM
Do I need to even wrap the peripheral or what?
Posted 26 December 2012 - 04:18 PM
Nope. Just get clicks like you normally would.
Posted 26 December 2012 - 07:16 PM
I thought it made an entirely different event, something about a monitor click being the first thing returned. the next is the side of the monitor and the other 2 params being the co-ordinates of the clicked character. that's how it worked for me
Posted 26 December 2012 - 07:28 PM
Well, you're more right than I am.
Apparently it returns the event "monitor_touch", then the side of the monitor, and x/y coordinates.
Apparently it returns the event "monitor_touch", then the side of the monitor, and x/y coordinates.
Posted 26 December 2012 - 07:30 PM
lol these people fix bugs so fast you just can't keep up sometimes :)/> I like the new implementation
Posted 26 December 2012 - 08:02 PM
Getting clicks instead of monitor touch events is a behavior caused by using the monitor program to display a program on a monitor.
Posted 26 December 2012 - 08:06 PM
that is so cool :)/> I didn't expect you to convert the events automatically. NICE