PDA

View Full Version : Mini JS as mouse special


BUBBALOU
30-03-2005, 01:49 PM
This one might be real easy , so i will ask the pro's

currently have the mini joystick on the pro throttle set to use mouse x/y axis but need mouse button 1 to activate the feature

this was a feature that was added to the game as a patch and is activated by a cgf file in the games directory.

So IOW: to activate mouse cockpit pan. you must hold mouse button 1 and then it works

so here is what I need help with , when js2.a1 or a2 is moved activate mouse button 1 and act as mouse axis, then when released deactivate.
Iif your really good shifted action to return to center and deactivate or visa versa(shifted) for primary function and secondary

deadzone for axis on mini joystick is set to 15 since that is what seems best
sens is 95

MichaelCHProd
30-03-2005, 05:00 PM
Here is a rough/quick stab at it.....

script

// Â*X Axis of Pro Throttle
IF ([JS1.A1 > 135] or [JS1.A1 < 120]) THEN
Â* Â* CMS.A1 = JS1.A1;
Â* Â* CMS.B1 = TRUE; Â* Â*Â*Â*Â*Â*
ELSE
Â* Â* CMS.A1 = 128;Â*Â*Â*Â*
Â* Â* CMS.B1 = FALSE;
ENDIF

// Y Axis of Pro Throttle
IF ([JS1.A2 > 135] or [JS1.A2 < 120]) THEN
Â* Â* CMS.A2 = JS1.A2;
Â* Â* CMS.B1 = TRUE;
ELSE
Â* Â* CMS.A2 = 128;
Â* Â* CMS.B1 = FALSE;
ENDIF

endScript

I set CMS.A1 to the Mouse X and CMS.A2 to the Mouse Y. CMS.B1 is set to Mouse Button 1.

There are probably shorter scripts but try this one.

BUBBALOU
01-04-2005, 04:55 AM
thanks i'll try that see how it works

Edit : have it working just have to adjust settings, now looking to make it work with return to center ..update soon

MichaelCHProd
02-04-2005, 04:06 AM
How is it working?