Page 1 of 1
need mouselook
Posted: Fri Jun 22, 2007 5:14 am
by Bundyrum
Can some one post the code for mouse control of tanks and tailgunners plz. Setting up new comp again.
Posted: Fri Jun 22, 2007 5:49 am
by Main4ce
This is the code:
<control function="Use primary weapon">
<mousebutton>1</mousebutton>
</control>
<control function="Turret traverse">
<mouseaxis index="1">x</mouseaxis>
</control>
<control function="Turret elevate">
<mouseaxis index="1">y</mouseaxis>
</control>
Aslo see
http://spoon.battlegroundwiki.info/
Posted: Sat Jun 23, 2007 7:51 pm
by Bundyrum
Need some more help. I now have mouse but no joystick.Does anyone have the cflm that combines the two?
Posted: Sun Jun 24, 2007 5:54 am
by Main4ce
My air.cfml
<?xml version='1.0'?>
<!DOCTYPE controlset SYSTEM "cfml.dtd">
<controlset version="1.1.0" language="english" keyboard="us">
<control function="Gear handle">
<joybutton stick="1">9</joybutton>
<joybutton stick="1" index="1">10</joybutton>
</control>
<control function="Deploy dive brakes">
<key>x</key>
<key index="1"></key>
</control>
<control function="Engine Start/Stop">
<key index="1"></key>
</control>
<control function="Toggle tail lock">
<joybutton stick="1">11</joybutton>
<key index="1"></key>
</control>
<control function="Toggle bomb bay door">
<key>b</key>
<key index="1"></key>
</control>
<control function="Deploy weapon">
<key>d</key>
<joybutton stick="1" index="1">14</joybutton>
</control>
<control function="Toggle wep">
<key></key>
<joybutton stick="1" index="1">8</joybutton>
</control>
<control function="Autopilot">
<key>a</key>
<joybutton stick="1" index="1">23</joybutton>
</control>
<control function="Show in game map">
<joybutton stick="1">3</joybutton>
<key index="1">m</key>
</control>
<control function="Instrument view">
<joybutton stick="1">4</joybutton>
<key index="1"></key>
</control>
<control function="Gunsight view">
<joybutton stick="1">5</joybutton>
<mousebutton index="1">3</mousebutton>
</control>
<control function="Cycle ammo">
<joybutton stick="1">12</joybutton>
<key index="1"></key>
</control>
<control function="Use primary weapon">
<joybutton stick="1">1</joybutton>
<mousebutton index="1">1</mousebutton>
</control>
<control function="Use secondary weapon">
<joybutton stick="1">6</joybutton>
<key index="1">b</key>
</control>
<control function="Jettison Ordnance">
<key>2</key>
<combo index="1">
<key>j</key>
<key>left control</key>
</combo>
</control>
<control function="Bombsight Speed Decrease">
<key>end</key>
<key index="1"></key>
</control>
<control function="Bombsight Speed Increase">
<key>home</key>
<key index="1"></key>
</control>
<control function="Bombsight Alt Decrease">
<key>delete</key>
<mousebutton index="1">wheeldown</mousebutton>
</control>
<control function="Bombsight Alt Increase">
<key>insert</key>
<mousebutton index="1">wheelup</mousebutton>
</control>
<control function="Position 1">
<key>1</key>
<joybutton stick="1" index="1">16</joybutton>
</control>
<control function="Position 2">
<joybutton stick="1" index="1">17</joybutton>
</control>
<control function="Position 3">
<joybutton stick="1" index="1">18</joybutton>
</control>
<control function="Position 4">
<joybutton stick="1" index="1">19</joybutton>
</control>
<control function="Roll">
<joyaxis stick="1">x</joyaxis>
</control>
<control function="Pitch">
<joyaxis stick="1">y</joyaxis>
<keydelta value="0.00" per="sec" index="2">
<key></key>
</keydelta>
</control>
<control function="Yaw">
<joyaxis stick="2" invert="1">rz</joyaxis>
<keydelta value="0.00" per="sec" index="2">
<key></key>
</keydelta>
</control>
<control function="Throttle">
<joyaxis stick="1">z</joyaxis>
<keydelta value="0.00" per="sec" index="2">
<key></key>
</keydelta>
<keydelta value="0.00" per="sec" index="3">
<key></key>
</keydelta>
<keyabsolute value="0.00" index="7">
<key></key>
</keyabsolute>
<keyabsolute value="0.00" index="10">
<key></key>
</keyabsolute>
</control>
<control function="Flap control">
<joyaxis stick="1">slider1</joyaxis>
<keydelta value="10.00" per="keypress">
<joybutton stick="1">19</joybutton>
</keydelta>
<keydelta value="-10.00" per="keypress" index="1">
<joybutton stick="1">21</joybutton>
</keydelta>
<keyabsolute value="0.00">
<key></key>
</keyabsolute>
<keyabsolute value="0.00" index="10">
<key></key>
</keyabsolute>
</control>
<control function="Left brake">
<joyaxis stick="2">x</joyaxis>
<keydelta value="50.00" per="sec" index="2">
<key>numpad /</key>
</keydelta>
<keydelta value="-50.00" per="sec" index="3">
<key>numpad *</key>
</keydelta>
<keyabsolute value="0.00">
<key></key>
</keyabsolute>
<keyabsolute value="100.00" onrelease="0.00" index="10">
<key>space</key>
</keyabsolute>
</control>
<control function="Right brake">
<joyaxis stick="2" invert="1">y</joyaxis>
<keydelta value="50.00" per="sec" index="2">
<key>numpad /</key>
</keydelta>
<keydelta value="-50.00" per="sec" index="3">
<key>numpad *</key>
</keydelta>
<keyabsolute value="0.00">
<key></key>
</keyabsolute>
<keyabsolute value="100.00" onrelease="0.00" index="10">
<key>space</key>
</keyabsolute>
</control>
<control function="Turret traverse">
<joyaxis stick="1">x</joyaxis>
<mouseaxis index="1">x</mouseaxis>
</control>
<control function="Turret elevate">
<joyaxis stick="1" invert="1">y</joyaxis>
<mouseaxis index="1">y</mouseaxis>
</control>
<control function="Elevator trim">
<joyaxis stick="1" invert="1">ry</joyaxis>
<keydelta value="1.00" per="keypress">
<key>c</key>
</keydelta>
<keydelta value="-1.00" per="keypress" index="1">
<key>v</key>
</keydelta>
<keydelta value="0.00" per="sec" index="2">
<key></key>
</keydelta>
<keydelta value="0.00" per="sec" index="3">
<key></key>
</keydelta>
</control>
<control function="Aileron trim">
<joyaxis stick="1">rx</joyaxis>
<keydelta value="0.00" per="sec" index="2">
<key></key>
</keydelta>
<keydelta value="0.00" per="sec" index="3">
<key></key>
</keydelta>
</control>
<control function="Rudder trim">
<joyaxis stick="0"></joyaxis>
<keydelta value="1.00" per="keypress">
<key>k</key>
</keydelta>
<keydelta value="-1.00" per="keypress" index="1">
<key>l</key>
</keydelta>
</control>
<control function="Stuka siren">
<key>s</key>
</control>
<control function="Adjust prop up">
<joybutton stick="1">20</joybutton>
<key index="1"></key>
</control>
<control function="Adjust prop down">
<joybutton stick="1">22</joybutton>
<key index="1"></key>
</control>
</controlset>
or just add:
</control>
<control function="Turret traverse">
<joyaxis stick="1">x</joyaxis>
<mouseaxis index="1">x</mouseaxis>
</control>
<control function="Turret elevate">
<joyaxis stick="1" invert="1">y</joyaxis>
<mouseaxis index="1">y</mouseaxis>
Just reassign the js buttons but not the movement!
Posted: Sun Jun 24, 2007 6:42 am
by Bundyrum
Thnx main.