sobe Posted December 6, 2012 Posted December 6, 2012 I use a script for the WH and on the EAC, I have an I/O command. I want the LED light to go on in unshifted on and to go out in unshifted off when in the OUT position. The red commands below. But it has a script error. //EAC MapKeyIO(&Throttle, EACON, PULSE+L_ALT+'m', PULSE+L_SHIFT+'m', LED(&Throttle, LED_ONOFF, LED_CURRENT+LED1)); MapKeyIO(&Throttle, EACOFF, PULSE+L_ALT+'m', PULSE+L_CTL+'m', LED(&Throttle, LED_ONOFF, LED_CURRENT-LED1)); Any help would be appreciated. Trackir4 using the latest Trackir 5 software, Win10 Pro [Creator Update] updated from Win7Pro Pro 64Bit, Intel® Core™ i5-2500 3.30 GHz 6M Intel Smart Cache LGA115 , GigaByte GA-Z68XP-UD4 Intel Z68 Chipset DDR3 16GB Ram, GTX MSI Gaming 1060 [6 GB] Video Card, Main Monitor 1 on left 1920x1080 Touchscreen Monitor 2 on right 1920x1080 .
frogsalegs Posted December 13, 2012 Posted December 13, 2012 MapKeyIO should only have 2 outputs Here's a sample include "target.tmh" //program startup int main() { if(Init(&EventHandle)) return 1; // declare the event handler, return on error MapAxis(&Joystick, JOYX, DX_X_AXIS); MapAxis(&Joystick, JOYY, DX_Y_AXIS); MapAxis(&Throttle, THR_LEFT, DX_ZROT_AXIS); MapAxis(&Throttle, THR_RIGHT, DX_Z_AXIS); MapAxis(&Throttle, SCX, DX_XROT_AXIS); MapAxis(&Throttle, SCY, DX_YROT_AXIS); MapAxis(&Throttle, THR_FC, DX_SLIDER_AXIS); //buttons SetShiftButton(&Joystick, S4, &Throttle, PSF, PSB, IOTOGGLE);//use button S4 to toggle io,pinky switch to toggle UMD layers MapKeyIO(&Throttle, EACON, CHAIN(PULSE+L_ALT+'a',LED(&Throttle, LED_ONOFF, LED_CURRENT+LED1)), CHAIN(PULSE+L_SHIFT+'b',LED(&Throttle, LED_ONOFF, LED_CURRENT+LED1))); MapKeyIO(&Throttle, EACOFF, CHAIN(PULSE+L_ALT+'d',LED(&Throttle, LED_ONOFF, LED_CURRENT-LED1)), CHAIN(PULSE+L_CTL+'e',LED(&Throttle, LED_ONOFF, LED_CURRENT-LED1))); MapKeyUMD(&Throttle,LTB,'x','y','z'); } //event handler int EventHandle(int type, alias o, int x) { DefaultMapping(&o, x); //add event handling code here }
Williamharris Posted January 29, 2013 Posted January 29, 2013 (edited) I use a script for the WH and on the EAC, I have an I/O command. I want the LED light to go on in unshifted on and to go out in unshifted off when in the OUT position. The red commands below. But it has leds a script error. //EAC MapKeyIO(&Throttle, EACON, PULSE+L_ALT+'m', PULSE+L_SHIFT+'m', LED(&Throttle, LED_ONOFF, LED_CURRENT+LED1)); MapKeyIO(&Throttle, EACOFF, PULSE+L_ALT+'m', PULSE+L_CTL+'m', LED(&Throttle, LED_ONOFF, LED_CURRENT-LED1)); Any help would be appreciated. Do you design custom led lights system? Edited January 30, 2013 by Williamharris
sobe Posted January 29, 2013 Author Posted January 29, 2013 No, but I finally got the script to work. Trackir4 using the latest Trackir 5 software, Win10 Pro [Creator Update] updated from Win7Pro Pro 64Bit, Intel® Core™ i5-2500 3.30 GHz 6M Intel Smart Cache LGA115 , GigaByte GA-Z68XP-UD4 Intel Z68 Chipset DDR3 16GB Ram, GTX MSI Gaming 1060 [6 GB] Video Card, Main Monitor 1 on left 1920x1080 Touchscreen Monitor 2 on right 1920x1080 .
Recommended Posts