P-51D [jsbsim]タイプ(ロケットの発射をジョイステックから)

● ロケットの発射をジョイステックから。

p51d-jsbsimに於いてロケット&爆弾の発射は通常shortcutsキーは[CTRL- D]ですがshortcutsキーの変わりにジョイステックから任意にボタンを指定することで可能になります。


ジョイステックの[***.xml]ファイルは私のは: /home/sabre/fgfs/install/fgfs/fgdata/Input/Joysticks/Microsoft/sidewinder.xmlに成ってますのでこのファイルに以下のコマンド書き込む事でFBに機能しました。

<button n="<0>">  ・・・・※ :0は/Microsoft/sidewinderに於いて引き金。
<desc>Fire Rockets or Release Bombs/Drop Tanks</desc>
<repeatable>false</repeatable>
<binding>
<command>nasal</command>
<script>setprop("/controls/armament/trigger2", 1)</script>
</binding>
<mod-up>
<binding>
<command>nasal</command>
<script>setprop("/controls/armament/trigger2", 0)</script>
</binding>
</mod-up>
</button>


コメント

このブログの人気の投稿

flightgearのマテリアルが反映し無い

Blender 頂点を円形に揃える(「LoopTools」)

Blender 複数のオブジェクトをミラー化