<!-- Warthog Joystick + HOTAS mapping -->
<ActionMaps version="0" >
 	<actionmap name="spaceship_view">
		<action name="v_view_yaw_left">
			<rebind device="joystick" input="js1_hat1_right" />
		</action>		
		<action name="v_view_yaw_right">
			<rebind device="joystick" input="js1_hat1_left" />
		</action>
		<action name="v_view_pitch_up">
			<rebind device="joystick" input="js1_hat1_up" />
		</action>		
		<action name="v_view_pitch_down">
			<rebind device="joystick" input="js1_hat1_down" />
		</action>
		<action name="v_view_cycle_fwd">
			<rebind device="joystick" input="js2_button15" />
		</action>
		<action name="v_view_dynamic_focus_toggle">
			<rebind device="joystick" input="js1_button7" />
		</action>			
	</actionmap>
 	<actionmap name="spaceship_movement">
		<action name="v_yaw_left">
			<rebind device="joystick" input="js2_button4" />
		</action>
		<action name="v_yaw_right">
			<rebind device="joystick" input="js2_button6" />
		</action>			
		<action name="v_throttle">
			<rebind device="joystick" input="js2_throttlez" />
		</action>
		<action name="v_target_match_vel">
			<rebind device="joystick" input="js2_button7" />
		</action>		
		<action name="v_afterburner">
			<rebind device="joystick" input="js2_button2" />
		</action>		
	</actionmap>
 	<actionmap name="spaceship_targeting">
		<action name="v_target_cycle_all_fwd">
			<rebind device="joystick" input="js1_button11" />
		</action>
		<action name="v_target_cycle_all_back">
			<rebind device="joystick" input="js1_button13" />
		</action>
		<action name="v_target_missile_lock_focused">
			<rebind device="joystick" input="js1_button2" />
		</action>		
		<action name="v_target_cycle_hostile_fwd">
			<rebind device="joystick" input="js1_button12" />
		</action>
		<action name="v_target_nearest_hostile">
			<rebind device="joystick" input="js1_button14" />
		</action>
	</actionmap>	
 	<actionmap name="spaceship_weapons">
		<action name="v_attack1_group2">
			<rebind device="joystick" input="js1_button19" />
		</action>
		<action name="v_attack1_group3">
			<rebind device="joystick" input="js1_button5" />
		</action>		
	</actionmap>
 	<actionmap name="spaceship_missiles">
		<action name="v_weapon_launch_missile">
			<rebind device="joystick" input="js1_button2" />
		</action>
	</actionmap>
 	<actionmap name="spaceship_defensive">
		<action name="v_weapon_launch_countermeasure">
			<rebind device="joystick" input="js1_button4" />
		</action>
		<action name="v_weapon_cycle_countermeasure_fwd">
			<rebind device="joystick" input="js1_button9" />
		</action>
	</actionmap>	
</ActionMaps>
