Right click button possible?

Posted By: upsidedownman

Right click button possible? - 04/16/09 00:04

Is it possible to have buttons notice right clicks and not only left clicks? Doesn't say anything in the manual about it.
Posted By: Michael_Schwarz

Re: Right click button possible? - 04/16/09 00:51



you have to think a bit creative, but isn't that the fun of 3DGS? laugh
Posted By: upsidedownman

Re: Right click button possible? - 04/16/09 01:10

I was thinking of doing that but it would mean more code for each button and its positions but i guess i have no choice. Thanks.
Posted By: delinkx

Re: Right click button possible? - 04/16/09 09:21

i guess u want both the mouse buttons to do the same function. so u define something like this:

Code:
funtion myMouse()
{
 //here, do the mouse stuffs
}

void main()
{
 ...
 on_mouse_left = myMouse;
 on_mouse_right = myMouse;
 on_mouse_middle = myMouse;
 ...
}


© 2024 lite-C Forums