This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
gknova61's profile picture

New touchscreen monitors?

Started by gknova61, 26 December 2012 - 11:22 AM
gknova61 #1
Posted 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?
Kingdaro #2
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.
NDFJay #3
Posted 26 December 2012 - 01:33 PM
although right clicking on a monitor counts as 2 left clicks on a terminal
Kingdaro #4
Posted 26 December 2012 - 01:58 PM
although right clicking on a monitor counts as 2 left clicks on a terminal
This, yeah. Is this a bug?
NDFJay #5
Posted 26 December 2012 - 02:20 PM
although right clicking on a monitor counts as 2 left clicks on a terminal
This, yeah. Is this a bug?

it is, its not that big of a deal, just gets annoying for me when i try use my OS on it
gknova61 #6
Posted 26 December 2012 - 04:13 PM
Do I need to even wrap the peripheral or what?
Kingdaro #7
Posted 26 December 2012 - 04:18 PM
Nope. Just get clicks like you normally would.
KaoS #8
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
Kingdaro #9
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.
KaoS #10
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
Lyqyd #11
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.
KaoS #12
Posted 26 December 2012 - 08:06 PM
that is so cool :)/> I didn't expect you to convert the events automatically. NICE