Game Development Community

Activate right mouse button?

by C. N. · in Torque Game Engine · 08/04/2006 (8:45 pm) · 2 replies

Hi,

I've been searching all night for a way to activate the right mouse button. It seems in the starter.fps all I can use is the left mouse button.

moveMap.bind(mouse, button0, mouseFire);

So, shouldn't binding function calls to the right mouse button (or any mouse button) work like:

moveMap.bind(mouse, button1, functionCall);
moveMap.bind(mouse, button2, anotherFunctionCall);

Just got TGE today so I'm not sure how to do this.

Thanks for any advice.

EDIT: Hmm, those functions work like a charm in the tutorial.base but not the starter.fps. Nevermind... :)

#1
08/04/2006 (9:29 pm)
They do work in starter.fps, including the mouse wheel. Just delete your config.cs file to pick up the new key bindings.
#2
08/04/2006 (9:33 pm)
Ah, thank you kindly.