Skip to content

Instantly share code, notes, and snippets.

@brookst
Last active December 24, 2016 12:26
Show Gist options
  • Save brookst/da0f5daaa4a3282bc2be to your computer and use it in GitHub Desktop.
Save brookst/da0f5daaa4a3282bc2be to your computer and use it in GitHub Desktop.
Star Citizen X45 layout
<!-- Star Citizen X45 Mappings
Thanks to Electrocutor
https://forums.robertsspaceindustries.com/discussion/110454/guide-actionmap-and-controller-mapping/p1
Thanks to Athan
http://www.miggy.org/games/starcitizen/misc/Layout_saitek_x45.xml
http://www.miggy.org/games/starcitizen/misc/Layout_saitek_x45-public.xml
Thanks to smellasaurus
http://www.reddit.com/r/starcitizen/comments/27c9qj/joystick_configuration_info_x55_config_tweakfix/
-->
<ActionMaps version="0">
<actionmap name="spaceship_view">
<action name="v_view_pitch_up">
<!-- View down - Mouse hat up -->
<rebind device="joystick" input="js1_button23"/>
</action>
<action name="v_view_yaw_right">
<!-- View right - Mouse hat right -->
<rebind device="joystick" input="js1_button24"/>
</action>
<action name="v_view_pitch_down">
<!-- View down - Mouse hat down -->
<rebind device="joystick" input="js1_button25"/>
</action>
<action name="v_view_yaw_left">
<!-- View left - Mouse hat left -->
<rebind device="joystick" input="js1_button26"/>
</action>
<action name="v_view_cycle_fwd">
<!-- Cycle view - POV2 hat left -->
<rebind device="joystick" input="js1_button18"/>
</action>
<action name="v_view_cycle_internal_fwd">
<!-- Cycle internal view - POV2 hat down -->
<rebind device="joystick" input="js1_button17"/>
</action>
</actionmap>
<actionmap name="spaceship_movement">
<action name="v_roll">
<!-- Roll - Throttle paddle -->
<rebind device="joystick" input="js1_rotz"/>
<!-- Roll - Peddles -->
<!--rebind device="joystick" input="js2_x"/-->
</action>
<action name="v_yaw">
<!-- Yaw - X axis -->
<rebind device="joystick" input="js1_x"/>
</action>
<action name="v_afterburner">
<!-- Boost - D button -->
<rebind device="joystick" input="js1_button5"/>
</action>
<action name="v_ifcs_toggle_vector_decoupling">
<!-- IFCS decouple - Pinkie switch -->
<rebind device="keyboard" input="js1_button7"/>
</action>
<action name="v_strafe_up">
<!-- Strafe up - Throttle hat up -->
<rebind device="keyboard" input="js1_button19"/>
</action>
<action name="v_strafe_down">
<!-- Strafe down - Throttle hat down -->
<rebind device="keyboard" input="js1_button21"/>
</action>
<action name="v_strafe_left">
<!-- Strafe left - Throttle hat left -->
<rebind device="keyboard" input="js1_button22"/>
</action>
<action name="v_strafe_right">
<!-- Strafe right - Throttle hat right -->
<rebind device="keyboard" input="js1_button20"/>
</action>
</actionmap>
<actionmap name="spaceship_targeting">
<action name="v_target_nearest_hostile">
<!-- Nearest hostile - POV1 hat up -->
<rebind device="joystick" input="js1_hat1_up"/>
</action>
<action name="v_target_cycle_hostile_fwd">
<!-- Cycle hostile - POV1 hat down -->
<rebind device="joystick" input="js1_hat1_down"/>
</action>
<action name="v_cycle_all_fwd">
<!-- Cycle all - POV1 hat right -->
<rebind device="joystick" input="js1_hat1_right"/>
</action>
<action name="v_cycle_all_back">
<!-- Cycle all backward - POV1 hat left -->
<rebind device="joystick" input="js1_hat1_left"/>
</action>
</actionmap>
<actionmap name="spaceship_weapons">
<action name="v_attack_group1">
<!-- Attack group 1 - Stick trigger -->
<rebind device="joystick" input="js1_button1"/>
</action>
<action name="v_attack1_group2">
<!-- Attack group 2 - Stick fire C -->
<rebind device="joystick" input="js1_button8"/>
</action>
</actionmap>
<actionmap name="spaceship_missiles">
<action name="v_weapon_launch_missile">
<!-- Missile fire - Stick fire -->
<rebind device="joystick" input="js1_button4"/>
</action>
<action name="v_weapon_cycle_missile_fwd">
<!-- Cycle missiles - POV2 hat right -->
<rebind device="joystick" input="js1_button16"/>
</action>
</actionmap>
<actionmap name="spaceship_defensive">
<action name="v_weapon_launch_countermeasure">
<!-- Countermeasures - Stick A -->
<rebind device="joystick" input="js1_button2"/>
</action>
<action name="v_weapon_cycle_countermeasure_fwd">
<!-- Cycle countermeasures - POV2 hat up -->
<rebind device="joystick" input="js1_button15"/>
</action>
</actionmap>
</ActionMaps>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment