priklad ovladani flaku 30,
traverse a elevate (klavesnice mys a joystick)
sestava:
klavesnice 1
mys 1
joystick 1 = volant logitech
joystick 2 = sidewinder
joystick 3 = prumyslovy try10
ovladani streleckych vezi pomoci mysi je zavisle na jeji rychlosti nastavene ve hre.
jiste je , ze pro sniperku a flak je potreba naprosto odlisne nastaveni mysi.
flak 30: pro ruznou rychlosti pohybujici se cil (letadlo) je lepsi pouzit joystick (promenna rychlost pohybu)
flak 30: pro pevne nebo pomalu pohyblujici se cile (pechota, atg) je lepsi pouzit mys (konstantni rychlost pohybu)
Ukazka zmeny traverse (+++ = novy radek) ve hre jsem nastavil ovladani joystickem a ve zdrojovem kodu flak30.cfml jsem pridal radek pro mys
Kód:
<control function="Turret traverse">
<joyaxis stick="3">x</joyaxis> (primary keymap)
++++++++<mouseaxis>x</mouseaxis>+++++++++++ (tertiary keymap)
<keyabsolute value="0.00" onrelease="50.00"> (secundary keymap)
<key>left arrow</key>
</keyabsolute>
<keyabsolute value="100.00" onrelease="50.00" index="10"> (secundary keymap)
<key>right arrow</key>
</keyabsolute>
</control>
Cely konfiguracni soubor
Kód:
<?xml version='1.0'?>
<!DOCTYPE controlset SYSTEM "cfml.dtd">
<controlset version="1.1.0" language="english" keyboard="us">
<control function="Gunsight view">
<joybutton stick="3" index="1">2</joybutton>
</control>
<control function="Use primary weapon">
<joybutton stick="3" index="1">1</joybutton>
</control>
<control function="Turret traverse">
<joyaxis stick="3">x</joyaxis>
<mouseaxis>x</mouseaxis>
<keyabsolute value="0.00" onrelease="50.00">
<key>left arrow</key>
</keyabsolute>
<keyabsolute value="100.00" onrelease="50.00" index="10">
<key>right arrow</key>
</keyabsolute>
</control>
<control function="Turret elevate">
<joyaxis stick="3" invert="1">y</joyaxis>
<mouseaxis>y</mouseaxis>
<keyabsolute value="0.00" onrelease="50.00">
<key>up arrow</key>
</keyabsolute>
<keyabsolute value="100.00" onrelease="50.00" index="10">
<key>down arrow</key>
</keyabsolute>
</control>
</controlset>