Cannot change mouse mappings
by Robert Allen · in Technical Issues · 01/29/2007 (1:55 pm) · 4 replies
Hi All,
I am siply trying to change some key mappings in the engine in default.bind.cs
I have added
function mouseFire(%val)
{
$mvTriggerCount0++;
}
function altTrigger(%val)
{
//$mvTriggerCount1++;
toggleFirstPerson($firstPerson);
echo('Toggle Attempted .......... ROBERT');
}
moveMap.bind( mouse, button0, mouseFire );
moveMap.bind( mouse, button1, altTrigger );
moveMap.bind( mouse, button2, altTrigger );
The problem is that neither mapping for mouse 1 or 2 is occuring. So there is so toggle and no echo.
I notices there is a file called config.cs , I have placed the bindings here also and nothing is happening.
Can anyone shed any light in this for me please ???
I am siply trying to change some key mappings in the engine in default.bind.cs
I have added
function mouseFire(%val)
{
$mvTriggerCount0++;
}
function altTrigger(%val)
{
//$mvTriggerCount1++;
toggleFirstPerson($firstPerson);
echo('Toggle Attempted .......... ROBERT');
}
moveMap.bind( mouse, button0, mouseFire );
moveMap.bind( mouse, button1, altTrigger );
moveMap.bind( mouse, button2, altTrigger );
The problem is that neither mapping for mouse 1 or 2 is occuring. So there is so toggle and no echo.
I notices there is a file called config.cs , I have placed the bindings here also and nothing is happening.
Can anyone shed any light in this for me please ???
About the author
#2
01/29/2007 (2:01 pm)
EDIT- DELETED POST.....was not helpful....
#3
01/29/2007 (2:06 pm)
Doesn't an echo() require double quotes around the string? maybe thats the problem.
#4
moveMap.bind( mouse, button0, mouseFire );
moveMap.bind( mouse, button1, altTrigger );
moveMap.bind( mouse, button2, altTrigger );
to config.cs
there are a few config.cs files, i'm not sure which one you want to add to.
01/29/2007 (3:35 pm)
Add the moveMap.bind( mouse, button0, mouseFire );
moveMap.bind( mouse, button1, altTrigger );
moveMap.bind( mouse, button2, altTrigger );
to config.cs
there are a few config.cs files, i'm not sure which one you want to add to.
Robert Allen