logo
ホーム •  フォーラム •  日本語wikiトップ •  アカウント情報 •  サイト内検索 •  新規登録
 ログイン
ユーザー名:

パスワード:


パスワード紛失

新規登録
 メインメニュー
 米国サイト
 オンライン状況
89 人のユーザが現在オンラインです。 (10 人のユーザが フォーラム を参照しています。)

登録ユーザ: 0
ゲスト: 89

もっと...

Re: FlightGear用の気泡六分儀

このトピックの投稿一覧へ

なし Re: FlightGear用の気泡六分儀

msg# 1.2
depth:
1
前の投稿 - 次の投稿 | 親投稿 - 子投稿.1 | 投稿日時 2013-10-1 6:43 | 最終変更
toshi  長老   投稿数: 1534
toshiです。

2008-10-6付けの「Re: FlightGear用の気泡六分儀」の中で、ビューモード時のマウス操作でaltキーを押した時に視点方向が細かく動くように設定する方法をご紹介しましたが、v2.12では正常に動作しないとのご報告をhideさんより頂きました(参考: Ver.2.12で風景が進化)。

そこで、shiftキーを押したときに機能するように修正してみました。

mice.xml の302行目にある
</y-axis-ctrl>
の下に、青字の部分を追加してください。
factorの部分を初期値の1/36の値とすることで、shiftキーを押した時のマウスの視点方向の動きが36倍細かくなるようにしてありますので、お好みに応じて修正してください。

<!-- Middle button and Ctrl pressed: move the view forward and backward -->
   <y-axis-ctrl>
       <binding>
        <condition>
         <and>
          <not>
           <property>/devices/status/mice/mouse[0]/button[0]</property>
          </not>
          <property>/devices/status/mice/mouse[0]/button[1]</property>
         </and>
        </condition>
        <command>property-adjust</command>
        <property>/sim/current-view/z-offset-m</property>
        <factor type="double">1</factor>
        <wrap type="bool">false</wrap>
       </binding>
    </y-axis-ctrl>
    
<!-- No buttons and Shift pressed: rotate the view left or right precisely -->
   <x-axis-shift>
    <binding>
     <condition>
      <and>
       <not>
        <property>/devices/status/mice/mouse[0]/button[0]</property>
       </not>
       <not>
        <property>/devices/status/mice/mouse[0]/button[1]</property>
       </not>
      </and>
     </condition>
     <command>property-adjust</command>
     <property>/sim/current-view/heading-offset-deg</property>
     <factor type="double">-10</factor>
     <min type="double">0</min>
     <max type="double">360</max>
     <wrap type="bool">true</wrap>
    </binding>
   </x-axis-shift>

<!-- No buttons and Shift pressed: tilt the view up and down precisely -->
   <y-axis-shift>
    <binding>
     <condition>
      <and>
       <not>
        <property>/devices/status/mice/mouse[0]/button[0]</property>
       </not>
       <not>
        <property>/devices/status/mice/mouse[0]/button[1]</property>
       </not>
      </and>
     </condition>
     <command>property-adjust</command>
     <property>/sim/current-view/pitch-offset-deg</property>
     <factor type="double">-5</factor>
     <min type="double">-90</min>
     <max type="double">90</max>
     <wrap type="bool">false</wrap>
    </binding>
   </y-axis-shift>

  </mode>

  <!-- Mode 3: spring-loaded-view mode -->
  <mode n="3">
   <cursor>left-right</cursor>
   <constrained type="bool">true</constrained>
   <pass-through type="bool">false</pass-through>
投票数:8 平均点:6.25

投稿ツリー

  条件検索へ


 検索

高度な検索
 新しい登録ユーザ
fb188steL1 2024-7-27
ecykowo 2024-7-27
apibosuh 2024-7-27
ytyqowy 2024-7-27
edylycu 2024-7-27
ci888staxD 2024-7-27
iwocoloji 2024-7-27
yqixygis 2024-7-27
statesof 2024-7-26
ivibyzi 2024-7-26
 最近の画像(画像付)
自作11機目 F/A-18... (2022-5-27)
自作11機目 F/A-18...
飛んでみる八尾空港 (2022-4-10)
飛んでみる八尾空港
作ってみる八尾空港 (2022-4-2)
作ってみる八尾空港
F117 nighthawk (2021-5-19)
F117 nighthawk
HiTouchさん宛の画像... (2020-11-8)
HiTouchさん宛の画像...
Powered by XOOPS Cube 2.1© 2001-2006 XOOPS Cube Project
Theme designed by OCEAN-NET