I am building a replica D92 cab
and i am hooking up the switches now, (this is my mock up dash, the final one will be covered in leatherette, and have the proper switches and dials in the right places)
ATM i am concentrating on the indicator/wiper stalk, what i need is to modify the switch inputs to activate only when the switch is down, and release when it's up,
For the indicators i found a script on the old forum from when someone stuck an indicator stalk from a car to his PC wheel, kinda like i have done really.
- {trigger:blinker_left_button}(L.L.lights_sw_blinker) 1 = !
- {if}
- (T.L.ev_lights_blinker_swon)
- {endif}
- 1 (S.L.lights_sw_blinker)
- (M.L.lights_startblinkgeber)
- {end}
- {trigger:blinker_left_button_off}
- (L.L.lights_sw_blinker) 0 >
- {if}
- (T.L.ev_lights_blinker_swoff)
- 0 (S.L.lights_sw_blinker)
- {endif}
- {end}
- {trigger:blinker_right_button}
- (L.L.lights_sw_blinker) 2 = !
- {if}
- (T.L.ev_lights_blinker_swon)
- {endif}
- 2 (S.L.lights_sw_blinker)
- (M.L.lights_startblinkgeber)
- {end}
- {trigger:blinker_right_button_off}
- (L.L.lights_sw_blinker) 0 >
- {if}
- (T.L.ev_lights_blinker_swoff)
- 0 (S.L.lights_sw_blinker)
- {endif}
- {end}
Display More
This adds a whole new key event, but it works (once i figured out to assign my indicator stalks switches (via it's usb gamepad hack), to the correct new key assignments)
So when i put my indicator stalk to indicate left, left indicator is activated, when i put the stalk back to the middle (or my wheel self cancels it) the indicators turn off,
Same the other way of course,
If i was using the keyboard, and say i had assigned left indicator to "L", holding L down would activate the indicators, releasing L would de-activate them.
I want to do the same with the wiper commands, but i'm not sure which script i need to modify, i.e. which .osc file is the wiper switch scripts in that i need to modify? i.e the indicators are in the lights.ocs file,
and then i really just want to modify the existing scripts, to add the SWON/SWOFF bits that make the switch work how i want, rather than add new functions as with the indicator script.
I am fine with electronics, wiring, mechanical things, but computer programming is really hard for me to figure out,