Jump to content

Assign the datarefs to buttons


head_check
 Share

Recommended Posts

Assigned the axis for both condition levers I think that it is possible to assign the datarefs to buttons with Python script "xjoymap" too.

But somewhat is wrong.

I have dataref for switching the Prop synchronization - LES/saab/prop/prop_sync_toggle

I have example from .ini file of the xjoymap:

 

Button to dataref examples
============================

toggle mode

For assigments with more than one value, it will define an additional
*_rev command with reverse direction
You can disable the automatic looping from the last value to the first one adding

loop = false

 

[Afterburner  toggle]

new_command=afterburner_1dataref=sim/cockpit2/engine/actuators/afterburner_enabledvalues = 0,1

==============================

I write command

[SAAB Prop_Synchronization]

loop = false ;; or without this string, it's no difference in the result

new_command=prop_synchdataref= LES/saab/prop/prop_sync_toggle_enabledvalues = 0,1

And i look for new command in (from example):

at "Creates a new "virtual command" at sim/xjoymap/NAV_APP"

OK sim/xjoymap does not exist, but exist the command directory xjoymap/main

I look for the new command and can not find it, no in the directory xjoymap, no in another directories

Where is the mistake?

=====================

I'm so sorry!

Mistake was in syntaxis

It works!

[SAAB Prop_Synchronization]

loop = false ;; with this string - toggle, without - two commans in directory xjoymap/main for ON and OFF the Prop synchronization

new_command=prop_synch

dataref= LES/saab/prop/prop_sync_toggle

enabledvalues = 0,1

 

 

 

Edited by head_check
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...