Computer Science Canada Mouse commands with a procedure |
| Author: | HaVoC [ Thu Dec 18, 2003 2:12 pm ] | ||
| Post subject: | Mouse commands with a procedure | ||
Is it possible to call a procedure and have it able to be used with a mouse. Like
|
|||
| Author: | Dan [ Thu Dec 18, 2003 5:59 pm ] | ||
| Post subject: | |||
you can use mousewhere for this: mousewhere (var x, y, button : int) it puts the x an y values of the mouse in to the 1st 2 varibles you put in and the condition of the button in the 3rd. Ex form the turing doc:
now to tell if they clicked on your botton you whould uses consion dection with the x and y values of the mouse withch only activates when the mouse botton is down. there is more info on collsion dection in the turing tuttorial section. |
|||