View Full Version : Middle Mouse Button
YuriJurek
30th September 2013, 17: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, 18: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, 18:35
Thanks for quick help, I forgot that cod2 is so simple I can just do it with MOUSE3. ;lol
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.