is it possible to generate fake mouse events?

Hello All!

I am doing some work on the uniTUIO project (http://xTUIO.com) which allows unity devs to take advantage of multi-touch tracking stuff and make cool multi-touch games with unity.

Anyhow, my first proper unity projects were on the iPhone (have since moved to the desktop) and as such I heeded everyone’s advice to steer clear of the GUI system for performance reasons. So i dutifully built my own GUI manager scripts which followed me to the desktop, and so I have to sheepishly admit that I have done scads of unity dev at this point but have never used the onGUI stuff.

SO! the problem I am having now is that I want to be able to make the uniTUIO scrips a bit more friendly to people who are not like me and do not have their own home-grown GUI system.

To this end, I am wondering if it is possible to generate gui Events and insert them into the event queue somehow?

I guess this might be similar to wanting to use a gamepad controller to ‘press’ buttons on the GUI. (ie i see that I can focus buttons, but I do not know how to ‘press’ them programatically. )

any help or a nudge towards an existing thread would be much appreciated!

Cheers!
-Ben

Unfortunately, there isn’t any way to add items to the event queue to simulate inputs from a script.

Hey Andeeee,

Thanks for that.

Cheers!
-B