- Messages
- 35
- Country
I have a 3 way knob, with state_0, state_1, state_2 (State 1 is in the middle)
I have 3 inputs, key events for those states 0_on, 1_on, 2_on
I want to be able to left mouse drag the knob to the right through the states, and left drag to the left to return.
Possible? Here's what I think I need but it doesn't work. I don't understand how the M:X position works in 3d.
Assuming this switch starts at 1... and I leftclick drag to the left for 0 and left click drag to the right for 2. This is mostly pseudo code. I also realize this code would only work for the starting position atm.
EDIT: I think i need to define the beginning of the drag with left click event, using an example not making sense yet ..added to code.
last edit: the lever_fuel_selector_LOR is what I want now I found that example I think I got it...
I have 3 inputs, key events for those states 0_on, 1_on, 2_on
I want to be able to left mouse drag the knob to the right through the states, and left drag to the left to return.
Possible? Here's what I think I need but it doesn't work. I don't understand how the M:X position works in 3d.
Assuming this switch starts at 1... and I leftclick drag to the left for 0 and left click drag to the right for 2. This is mostly pseudo code. I also realize this code would only work for the starting position atm.
EDIT: I think i need to define the beginning of the drag with left click event, using an example not making sense yet ..added to code.
Code:
<MouseFlags>LeftSingle+LeftDrag</MouseFlags>
<CallbackCode>
(M:Event) 'LeftSingle' scmi 0 == if{ (M:X) (>L:Click) }
(M:Event) 'LeftDrag' scmi 0 ==
if { (M:X) ( L:Click) "left or right of it?";
if { (> K:0_on ) }
els { (> K:2_on) } }
</CallbackCode>
last edit: the lever_fuel_selector_LOR is what I want now I found that example I think I got it...
Last edited: