1
0
Fork 0

able to change FoV in spring-loaded mode

This commit is contained in:
Clément de l'Hamaide 2014-01-19 23:29:25 +01:00
parent a3e6108aa1
commit 6608cfe841

View file

@ -41,6 +41,34 @@ current mode for each mouse is held in the
<reason>right-click</reason>
</binding>
</button>
<!-- extra buttons control FoV -->
<!-- these are often assigned to mouse-wheel motion in Linux -->
<button n="3">
<binding>
<condition>
<and>
<property>/devices/status/mice/mouse[0]/button[2]</property>
<not><property>/sim/mouse/right-button-mode-cycle-enabled</property></not>
</and>
</condition>
<command>nasal</command>
<script>view.decrease()</script>
</binding>
</button>
<button n="4">
<binding>
<condition>
<and>
<property>/devices/status/mice/mouse[0]/button[2]</property>
<not><property>/sim/mouse/right-button-mode-cycle-enabled</property></not>
</and>
</condition>
<command>nasal</command>
<script>view.increase()</script>
</binding>
</button>
</mode>
@ -309,28 +337,6 @@ current mode for each mouse is held in the
<constrained type="bool">true</constrained>
<pass-through type="bool">false</pass-through>
<!-- extra buttons control FoV -->
<!-- these are often assigned to mouse-wheel motion in Linux -->
<button n="3">
<binding>
<condition>
<property>/devices/status/mice/mouse[0]/button[2]</property>
</condition>
<command>nasal</command>
<script>view.decrease()</script>
</binding>
</button>
<button n="4">
<binding>
<condition>
<property>/devices/status/mice/mouse[0]/button[2]</property>
</condition>
<command>nasal</command>
<script>view.increase()</script>
</binding>
</button>
<!-- Mouse left/right motion -->
<x-axis>