Well, this is for all of those people who keep asking how to make a touchscreen using crazyninjaguy's mouse module and dualscreen.
Which I can't link the Mouse module as you have to find it over at planetdev.net.
Well, for those who have his two scripts this is what you need to do.
To make a menu have the mouse function you need to find the loop do of the script and then do this following script:
Mouse.mouse_in_area?(x,y,width,height)
That code there sets up the area of where the mouse is going to be expected.
the x,y are the co-ordinates of where the area is located while the width and height is the area size.
For example:
Mouse.mouse_in_area?(30,30,100,100)
That's an example of a button area for instance.
The structure needed for the button to work would be this:
Mouse.mouse_in_area?(30,30,100,100)
if Mouse.click?(1)#left mouse button
do stuff# This is where you put all of the commands you want to happen
end # ends the check for the left mouse button being clicked
end# ends the check for the mouse being in a certain area.
Well that's all that's really needed to be known about the mouse script.
I will only help those who make an effort to learn :P.
Which I can't link the Mouse module as you have to find it over at planetdev.net.
Well, for those who have his two scripts this is what you need to do.
To make a menu have the mouse function you need to find the loop do of the script and then do this following script:
Mouse.mouse_in_area?(x,y,width,height)
That code there sets up the area of where the mouse is going to be expected.
the x,y are the co-ordinates of where the area is located while the width and height is the area size.
For example:
Mouse.mouse_in_area?(30,30,100,100)
That's an example of a button area for instance.
The structure needed for the button to work would be this:
Mouse.mouse_in_area?(30,30,100,100)
if Mouse.click?(1)#left mouse button
do stuff# This is where you put all of the commands you want to happen
end # ends the check for the left mouse button being clicked
end# ends the check for the mouse being in a certain area.
Well that's all that's really needed to be known about the mouse script.
I will only help those who make an effort to learn :P.