able to change FoV in spring-loaded mode
This commit is contained in:
parent
a3e6108aa1
commit
6608cfe841
1 changed files with 28 additions and 22 deletions
50
mice.xml
50
mice.xml
|
@ -41,6 +41,34 @@ current mode for each mouse is held in the
|
||||||
<reason>right-click</reason>
|
<reason>right-click</reason>
|
||||||
</binding>
|
</binding>
|
||||||
</button>
|
</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>
|
</mode>
|
||||||
|
|
||||||
|
@ -309,28 +337,6 @@ current mode for each mouse is held in the
|
||||||
<constrained type="bool">true</constrained>
|
<constrained type="bool">true</constrained>
|
||||||
<pass-through type="bool">false</pass-through>
|
<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 -->
|
<!-- Mouse left/right motion -->
|
||||||
<x-axis>
|
<x-axis>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue