Mouse Input Events

HELP!

I have a 3d scene with a couple of squares translated. How do i right click on the screen to change the colour of the object? the current colour is red? I want to change it to another colour using a menu.

thanks!

Depends on what type of menu’s you want, windows bar type drop down or glut popup type menu’s?

Also what OS are you using and programming language.

Originally posted by ianwillo:
[b]HELP!

I have a 3d scene with a couple of squares translated. How do i right click on the screen to change the colour of the object? the current colour is red? I want to change it to another colour using a menu.

thanks![/b]

i am using c++, win32 and when i right click i want a menu like on your desktop when you right click and for it to have two options:

PC
Bookcase

when you go on one of these you then choose a colour.

thanks ian