PDA

View Full Version : Middle Mouse Button



YuriJurek
30th September 2013, 18:53
Think it is pretty straight forward question but could not find anything on that.

How to find if someone is pressing "middle mouse button" ?

serthy
30th September 2013, 19:14
either:

/bind MOUSE3 "openscriptmenu blabla MOUSE3"


onMenuResponse()
{
self endon( "disconnect" );

while( true )
{
self waittill( "menuresponse" , menu , response );

if( response == "MOUSE3" )
{
//...
}
}
}

or use libcod

YuriJurek
30th September 2013, 19:35
Thanks for quick help, I forgot that cod2 is so simple I can just do it with MOUSE3. ;lol