Nested input events

I have some troubles with creating nested input events. I need simple pushable
knobs (one infinite, second limited to min/max value). I’ve created two
separate input events using ASOBO_Interaction_Base_Template and they work fine
on their own, but I cannot merge them toghether using IE_ID_EXTERNAL_0. No
matter what I do I have either knob or push working, but I can’t make them
work together. The example in the docs is a bit too simple and I don’t know
how to move the ideas there to real world example. What is the correct way of
creating nested input events?

Hello @majkel Is this for a knob with dual functions like the Baro Selector in
the A320 ? Regards, Boris

I’m not familiar with A320, I’m
thinking about knob that can be rotated and pushed, like HDG in C208 for
example.

Hello @majkel Any reason to not use default templates ? You can take example
of the C208 behavior Using default templates First, you will need to name
correctly your nodes in blender or 3dsmax : I will use blender so I created an
empty named AUTOPILOT_Knob_Heading_Push_1 with a mesh parented
“AUTOPILOT_Knob_Heading_1” I made my animation and named them :
AUTOPILOT_Knob_Heading_Push_1 → for the push animation
AUTOPILOT_Knob_Heading_1 → for the heading animation (rotation) Then I
used the template ASOBO_AUTOPILOT_Knob_Heading_Template in interior.xml like
this :

That’s it ! Of course, this is the template I used :

I also set a custom heading button using a custom subtemplate in a
ModelBehaviorDefs folder using this code:

            AUTOPILOT
            
            AUTOPILOTSPECIAL_Knob_Heading#SUFFIX_ID#
            AUTOPILOTSPECIAL_Knob_Heading_Push#SUFFIX_ID#
            AUTOPILOTSPECIAL_Knob_Heading
            AUTOPILOTSPECIAL_Knob_Heading#SUFFIX_ID#
            autopilot_knob_push_button_on
            0.1
            autopilot_knob_push_button_off
            0.5
            autopilot_heading_knob
            36
            0.01
            0.001
            0.01
            0.001
            
            
                PUSH
            

            
                
                    3
                
                
                    1
                
            
        
        

            
            Toto

            
                
                    1 -1 p0 0 > ? sp0 #HEADING_INDEX# (A:AUTOPILOT HEADING LOCK DIR:#HEADING_INDEX#, degrees) 1 l0 * + dnor (>K:2:HEADING_BUG_SET)
                    PUSH
                    Heading_Sync_Toto
                    (A:HEADING INDICATOR, degrees) (>K:HEADING_BUG_SET)
                    @TT_Package.AUTOPILOT_KNOB_HEADING_ACTION_SET_PUSH
                
                
                    #ANIM_NAME_KNOB#
                    1 -1 p0 0 > ? sp0 #HEADING_INDEX# (A:AUTOPILOT HEADING LOCK DIR:#HEADING_INDEX#, degrees) 1 l0 * + dnor (>K:2:HEADING_BUG_SET)
                
            
        
        
            
                
                    
                        #BTN_ID_PULL#
                        PULL
                        #PULL_SET_STATE_EXTERNAL#
                        #TT_DESCRIPTION_ID_PULL#
                        
                            #TT_DESCRIPTION_ID_PULL_IS_DYNAMIC#
                        
                    
                    
                        #BTN_ID_PUSH#
                        PUSH
                        #PUSH_SET_STATE_EXTERNAL#
                        #TT_DESCRIPTION_ID_PUSH#
                        
                            #TT_DESCRIPTION_ID_PUSH_IS_DYNAMIC#
                        
                    
                
                
                    
                        #BTN_ID_EXTERNAL#
                        PUSH
                        #BTN_SET_STATE_EXTERNAL#
                        #TT_DESCRIPTION_ID_BTN#
                    
                
            

            
                @TT_Package.AUTOPILOT_KNOB_HEADING_ACTION_SET_ADJUST
                @TT_Package.AUTOPILOT_KNOB_HEADING_TITLE
                (A:AUTOPILOT HEADING LOCK DIR:#HEADING_INDEX#, degrees) sp0
                l0 '%d°' @sprintf
                
                    
                        _PushPull
                        (>B:#INPUT_EVENT_ID_SOURCE#_#BTN_ID_PULL#_#DEFAULT_BINDING_STR#)
                        (>B:#INPUT_EVENT_ID_SOURCE#_#BTN_ID_PUSH#_#DEFAULT_BINDING_STR#)
                        #INPUT_EVENT_ID_SOURCE#_#BTN_ID_PULL#
                        #INPUT_EVENT_ID_SOURCE#_#BTN_ID_PUSH#

If needed, send me your project , I will have a look (See [3) Provide prinvate
content](https://devsupport.flightsimulator.com/articles/5483/how-to-report-a-
bug-or-crash.html) ) Regards, Boris

Thank you for help. I’m not using default templates because these two pushable
knobs we need are for our custom logic. I need just simple L variables one for
push, second for rotate. Most of our interactive objects are based on L
variables, and they work fine when ASOBO_Interaction_Base_Template is used, I
just can’t connect push and knob INTERACTION_TYPE together.