Making a rocker switch control in the cab?
Posted: Sat Jan 30, 2016 4:44 pm
Anyone have any tips on how to make a rocker switch control in the cab? ie. one which normally rests in the zero position but can be waggled forwards and backwards, always jumping back to zero?
Right now I have a 3-notch lever and my script looks at the value of the control - if it's larger than a certain value I force the control back to zero. It's a total hack and it only works with the keyboard - if you grab the control with the mouse, the "jump back" function is overridden by the fact that the mouse button is pressed. The HUD doesn't work at all. I've tried "interior tri switch" but that doesn't seem to do much different.
This is for the DH1 DH2 "Wadloper" project I'm finishing up. The throttle control is a joystick that you waggled forwards and backwards to increase/decrease the engine power in discreet steps. My scripts can deal with the discreet steps to change the regulator power but the GUI control is just not ideal right now.
Any ideas?
Right now I have a 3-notch lever and my script looks at the value of the control - if it's larger than a certain value I force the control back to zero. It's a total hack and it only works with the keyboard - if you grab the control with the mouse, the "jump back" function is overridden by the fact that the mouse button is pressed. The HUD doesn't work at all. I've tried "interior tri switch" but that doesn't seem to do much different.
This is for the DH1 DH2 "Wadloper" project I'm finishing up. The throttle control is a joystick that you waggled forwards and backwards to increase/decrease the engine power in discreet steps. My scripts can deal with the discreet steps to change the regulator power but the GUI control is just not ideal right now.
Any ideas?