Bindings: Difference between revisions

Jump to navigation Jump to search
467 bytes added ,  4 April 2014
mNo edit summary
Line 37: Line 37:


=== nasal ===
=== nasal ===
[[Nasal]] is frequently used for complicated systems.
[[Nasal]] is frequently used for complicated systems, because it can execute virtually any function and allows running previously-defined Nasal functions.
<syntaxhighlight>
<syntaxhighlight>
<binding>
<binding>
Line 44: Line 44:
</binding>
</binding>
</syntaxhighlight>
</syntaxhighlight>
The cmadarg() function is often useful in these situations to extract offset values passed to the binding.
The [[List of Nasal extension functions#cmdarg.28.29|cmdarg()]] function is often useful in these situations to extract offset values passed to the binding. It returns the specific <tt>&lt;binding&gt;</tt> node, which contains a <tt>&lt;setting&gt;</tt> node at runtime if used in a joystick axis that represents the value of that axis.
 
In joysticks and keyboard keys the script is run in a specific namespace; please refer to the documentation for what the namespace is.


=== property-adjust ===
=== property-adjust ===
395

edits

Navigation menu