]> git.mxchange.org Git - flightgear.git/commit
revert last patch, and do it differently: set /input/joysticks/which (int)
authormfranz <mfranz>
Mon, 13 Jun 2005 06:14:45 +0000 (06:14 +0000)
committermfranz <mfranz>
Mon, 13 Jun 2005 06:14:45 +0000 (06:14 +0000)
commit639ed2161f2eed25435ebd013d916ad6065bc15f
tree8d13a538749da9a3e6ca334e4b29587eb96a759f
parentdec07ab83e9ec1cb413e3e042dceb552b85ea376
revert last patch, and do it differently: set /input/joysticks/which (int)
to the joystick index (x in /input/joysticks/js[x]) both when initializing
nasal init blocks & whenever updating the joystick. That's the only way to
make these nasal contexts aware of the joytick for which they were called.
And that's useful if a js maintains common variables, such as modifiers or
state variables, that should be shared between the namespace-less bindings
and initialization code. And, yes, it's over-engineered ...  :-)
src/Input/input.cxx
src/Input/input.hxx