<root>
	<styles>
		<include src="file://{resources}/styles/steamstyles.css" />
		<include src="file://{resources}/styles/mainmenu.css" />
		<include src="file://{resources}/styles/library/controllerbindings_gordon.css" />
	</styles>

	<ControllerBindingsGordon defaultfocus="ABXYButtons">
		<Button id="VDFDump" onactivate="DumpVDF()" />
		<Panel id="PreviewHeader">
			<Label text="#SettingsController_Binding_Preview" />
			<Label id="PreviewApp" />
			<Panel id="PreviewContributorContainer">
				<Label id="PreviewTitle" />
				<Label id="PreviewAuthor" />
			</Panel>
			<Label id="PreviewDescription" />
		</Panel>
		<Panel id="BindingPreviewContainer">
			<Label id="PreviewWaterMark" text="#SettingsController_PreviewWaterMark" />
			<Panel id="BindingsContainer" tabindex="auto" selectionpos="auto">
				<Panel id="BindingsTitleContainer">
					<Label id="BindingsTitle" text="#SettingsController_BindingTitle" />
					<Label id="ControllerTitle" text="#SettingsController_BindingTitle_ForController" />
				</Panel>
				<Label id="BindingsCreator" text="#SettingsController_BindingCreator" />
				<Panel id="SetLayerContainer">
					<Panel id="GameActionSets" selectionpos="auto" onmovedown="SetSwitchInputFocus( Default GameActionSetLayers );" onmoveright="None();"/>
					<Panel id="GameActionSetLayers" selectionpos="auto" onmovedown="SetSwitchInputFocus( TrackpadsInCenter CenterTrackpadLeft MobileTouch SwapCenterPadModeToSplit PS4 SwapCenterPadModeToSplit PS RightTrigger XBox RightTrigger Apple RightJoystick CenterSplit SwapCenterPadModeToUnified Default Gyro );" onmoveright="None();"/>
				</Panel>
				<Panel id="TopHalfContainer" selectionpos="auto">
					<Panel class="Background" id="BackgroundController" >
					<Panel class="Background BackgroundLines" id="BackgroundBaseLinesLeft" />
					<Panel class="Background BackgroundLines" id="BackgroundBaseLinesRight" />					
						<Panel id="HelperDescription" >
							<Label id="HelperDescriptionHeader" text="#SettingsController_HelperDescriptionHeader" />
							<Label id="HelperDescriptionText" text="#SettingsController_HelperDescriptionText"/>
							<Label id="HelperGATitleText" text="#SettingsController_HelperGATitleText"/>
							<Label id="HelperGADescriptionText" text="#SettingsController_HelperGADescriptionText"/>
						</Panel>
						<Panel id="HelperImageBG" >
							<Image id="HelperImage" class="HelperImage" />
						</Panel>
						<Panel id="HelperAlwaysOn" >
							<Label id="HelperAlwaysOnHeader" text="#SettingsController_HelperAlwaysOnHeader" />
							<Label id="HelperAlwaysOnText" text="#SettingsController_HelperAlwaysOnText"/>
						</Panel>						
					</Panel>
					<Panel class="Background BackgroundLines" id="BackgroundLines" />
					<Panel id="PS4TrackpadContainer">
						<Button class="SwapCenterPadMode" id="SwapCenterPadModeToUnified" focusonhover="true" tabindex="auto" selectionpos="auto" onmoveleft="SetInputFocus( LeftTrigger );" onmoveright="SetInputFocus( RightTrigger );" onmovedown="SetSwitchInputFocus( CenterSplit CenterTrackpadLeft TrackpadsInCenter CenterTrackpadLeft MobileTouch CenterTrackpad PS4 CenterTrackpad Default CenterTrackpad );" onmoveup="SetInputFocus(GameActionSetLayers)" onfocus="AddStyle(BackgroundLines,CenterPadSelected)" onblur="RemoveStyle(BackgroundLines, CenterPadSelected)" onactivate="RemoveStyle( ControllerBindings, DualPadView ); SetInputFocus( SwapCenterPadModeToSplit );" >
							<Label id="SwapToUnified" text="#SettingsController_SwapToUnifiedPad" />
						</Button>
						<Button class="SwapCenterPadMode" id="SwapCenterPadModeToSplit" focusonhover="true" tabindex="auto" selectionpos="auto" onmoveleft="SetInputFocus( LeftTrigger );" onmoveright="SetInputFocus( RightTrigger );" onmovedown="SetSwitchInputFocus( CenterSplit CenterTrackpadLeft TrackpadsInCenter CenterTrackpadLeft MobileTouch CenterTrackpad PS4 CenterTrackpad MobileTouch CenterTrackpadLeft Default CenterTrackpad );" onmoveup="SetInputFocus(GameActionSetLayers)" onfocus="AddStyle(BackgroundLines,CenterPadSelected)" onblur="RemoveStyle(BackgroundLines, CenterPadSelected)" onactivate="AddStyle( ControllerBindings, DualPadView ); SetInputFocus( SwapCenterPadModeToUnified );">
							<Label id="SwapToSplit" text="#SettingsController_SwapToSplitPad" />
						</Button>	
						<Button class="ModeWrapper Small CenterTrackpad" id="CenterTrackpad" focusonhover="true" tabindex="auto" selectionpos="auto" onmoveleft="SetInputFocus( LeftTrigger );" onmoveright="SetInputFocus( RightTrigger );" onmovedown="SetSwitchInputFocus( MobileTouch CenterTrackpadLeft TrackpadsInCenter CenterTrackpadLeft Default Gyro );" onfocus="AddStyle(BackgroundLines, CenterPadSelected)" onblur="RemoveStyle(BackgroundLines, CenterPadSelected)"/>
						<Panel id="PS4TrackpadHalfContainer">
							<Button class="ModeWrapper Small CenterTrackpadHalf" id="CenterTrackpadLeft" focusonhover="true" tabindex="auto" selectionpos="auto" onmoveleft="SetInputFocus( LeftTrigger );" onmoveright="SetInputFocus( CenterTrackpadRight );" onmovedown="SetInputFocus( Gyro );" onfocus="AddStyle(BackgroundLines, CenterPadSelected)" onblur="RemoveStyle(BackgroundLines, CenterPadSelected)"/>		
							<Button class="ModeWrapper Small CenterTrackpadHalf" id="CenterTrackpadRight" focusonhover="true" tabindex="auto" selectionpos="auto" onmoveleft="SetInputFocus( CenterTrackpadLeft );" onmoveright="SetInputFocus( RightTrigger );" onmovedown="SetInputFocus( Gyro );" onfocus="AddStyle(BackgroundLines, CenterPadSelected)" onblur="RemoveStyle(BackgroundLines, CenterPadSelected)"/>						
						</Panel>
					</Panel>
					<Panel id="Switches" tabindex="auto" selectionpos="auto" class="ModeContainer">
					</Panel>
					<Panel class="BindingSlotStrip Left" id="Left" tabindex="auto" selectionpos="auto">
						<Button class="ModeWrapper Trigger Left Gradient0" id="LeftTrigger" focusonhover="true" onmoveright="SetSwitchInputFocus( CenterSplit CenterTrackpadLeft MobileTouch CenterTrackpad TrackpadsInCenter CenterTrackpadLeft PS4 CenterTrackpad Default RightTrigger );" onmovedown="SetSwitchInputFocus( SCV2 LeftBumper Default LeftBumperButton );" onmoveleft="None();" onmoveup="SetInputFocus( GameActionSetLayers );" selectionpos="auto" onfocus="AddStyle(BackgroundLines,LeftTriggerSelected)" onblur="RemoveStyle(BackgroundLines, LeftTriggerSelected)"/>
						<Button class="ModeWrapper TouchBumper SteamV2 Left Gradient0" id="LeftBumper" focusonhover="true" onmoveright="SetSwitchInputFocus( CenterSplit CenterTrackpadLeft TrackpadsInCenter CenterTrackpadLeft MobileTouch CenterTrackpad PS4 CenterTrackpad Default RightBumper );" onmovedown="SetSwitchInputFocus( LeftGripUpperButton );" onmoveleft="None();" onmoveup="SetInputFocus( LeftTrigger );" selectionpos="auto" onfocus="AddStyle(BackgroundLines,LeftBumperSelected)" onblur="RemoveStyle(BackgroundLines, LeftBumperSelected)"/>
					</Panel>
					<Panel class="BindingSlotStrip Right" id="Right" tabindex="auto" selectionpos="auto">
						<Button class="ModeWrapper Trigger Right Gradient0" id="RightTrigger" focusonhover="true" onmoveleft="SetSwitchInputFocus( CenterSplit CenterTrackpadRight TrackpadsInCenter CenterTrackpadRight MobileTouch CenterTrackpad PS4 CenterTrackpad Default LeftTrigger );" onmovedown="SetSwitchInputFocus( SCV2 RightBumper Default RightBumperButton );" onmoveright="None();" onmoveup="SetInputFocus( GameActionSetLayers );" selectionpos="auto" onfocus="AddStyle(BackgroundLines,RightTriggerSelected)" onblur="RemoveStyle(BackgroundLines, RightTriggerSelected)"/>
						<Button class="ModeWrapper TouchBumper SteamV2 Right Gradient0" id="RightBumper" focusonhover="true" onmoveleft="SetSwitchInputFocus( CenterSplit CenterTrackpadRight TrackpadsInCenter CenterTrackpadRight MobileTouch CenterTrackpad PS4 CenterTrackpad Default LeftBumper );" onmovedown="SetSwitchInputFocus( RightGripUpperButton );" onmoveright="None();" onmoveup="SetInputFocus( RightTrigger );" selectionpos="auto" onfocus="AddStyle(BackgroundLines,RightBumperSelected)" onblur="RemoveStyle(BackgroundLines, RightBumperSelected)"/>
					</Panel>				
					<Panel id="GyroModeContainer">
						<Button class="ModeWrapper Small" id="Gyro" focusonhover="true" tabindex="auto" selectionpos="auto" onmoveleft="SetSwitchInputFocus( MobileTouch Macro1FingerButton Default BackButton );" onmoveright="SetSwitchInputFocus( MobileTouch Macro0Button Default StartButton );" onmovedown="SetSwitchInputFocus( PS RightJoystick XBox RightJoystick MobileTouch RightJoystick SwitchPro RightJoystick Default ABXYButtons );" onmoveup="SetSwitchInputFocus( CenterSplit CenterTrackpadLeft MobileTouch CenterTrackpadLeft TrackpadsInCenter CenterTrackpadLeft PS4 CenterTrackpad Default AddActionLayerButton );" onfocus="AddStyle(BackgroundLines, GyroSelected)" onblur="RemoveStyle(BackgroundLines, GyroSelected)"/>
					</Panel>
				</Panel>
			</Panel>
			<Panel id="ModeContainer" tabindex="auto" selectionpos="auto" >
				<Button class="ModeWrapper GapRight SteamController" id="LeftTrackpad" focusonhover="true" onmoveup="SetSwitchInputFocus( MobileTouch Macro2FingerButton Default AlwaysOn );" onmovedown="None();" onmoveleft="None();" tabindex="auto" selectionpos="auto" onfocus="AddStyle(BackgroundLines,SlotOneSelected)" onblur="RemoveStyle(BackgroundLines, SlotOneSelected)"/>
				<Button class="ModeWrapper GapRight LJoyLeft" id="LeftJoystickLeft" focusonhover="true" onmoveup="SetSwitchInputFocus( MobileTouch Macro2FingerButton Default AlwaysOn );" onmovedown="None();" tabindex="auto" selectionpos="auto" onfocus="AddStyle(BackgroundLines,LeftJoystickSelected)" onblur="RemoveStyle(BackgroundLines, LeftJoystickSelected)"/>
				<Button class="ModeWrapper GapRight TraditionalController" id="DPad" focusonhover="true" onmoveup="SetSwitchInputFocus( MobileTouch Macro2FingerButton SwitchPro Gyro Default AlwaysOn );" onmovedown="None();" tabindex="auto" selectionpos="auto" onfocus="AddStyle(BackgroundLines,DPadSelected)" onblur="RemoveStyle(BackgroundLines, DPadSelected)"/>
				<Button class="ModeWrapper GapRight LJoyCenter" id="LeftJoystickCenter" focusonhover="true" onmoveup="SetSwitchInputFocus( Apple AlwaysOn Default Gyro );" onmovedown="None();" tabindex="auto" selectionpos="auto" onfocus="AddStyle(BackgroundLines,LeftJoystickSelected)" onblur="RemoveStyle(BackgroundLines, LeftJoystickSelected)"/>
				<Button class="ModeWrapper GapRight TraditionalController" id="RightJoystick" focusonhover="true" onmoveup="SetSwitchInputFocus( no_cap_start_button RightBumperButton Apple RightBumperButton XBox StartButton Default Gyro );" onmovedown="None();" tabindex="auto" selectionpos="auto" onfocus="AddStyle(BackgroundLines,SlotThreeSelected)" onblur="RemoveStyle(BackgroundLines, SlotThreeSelected)"/>
				<Button class="ModeWrapper GapRight" id="ABXYButtons" focusonhover="true" onmoveup="SetSwitchInputFocus( no_cap_start_button RightBumperButton Apple RightBumperButton PS StartButton XBox StartButton MobileTouch Macro3Button SwitchPro StartButton Default Gyro );" onmovedown="None();" tabindex="auto" selectionpos="auto" onfocus="AddStyle(BackgroundLines,SlotABXYSelected)" onblur="RemoveStyle(BackgroundLines, SlotABXYSelected)"/>
				<Button class="ModeWrapper SteamController" id="RightTrackpad" focusonhover="true" onmoveup="SetSwitchInputFocus( StartButton );" onmovedown="None();" onmoveright="None();" tabindex="auto" selectionpos="auto" onfocus="AddStyle(BackgroundLines,SlotFourSelected)" onblur="RemoveStyle(BackgroundLines, SlotFourSelected)"/>
			</Panel>		

			<ControllerPropertiesMode id="ModeProperties" />
			<ControllerPropertiesActivator id="ActivatorProperties" />
			<ChooseBinding id="ChooseBinding" />


		</Panel>
		<Panel id="LoadingBlockout">
			<Panel id="ThrobberContainer">
				<LoadingThrobber id="Throbber" />
			</Panel>
		</Panel>		
		<ControllerConfigBrowser id="ConfigBrowser" />
	</ControllerBindingsGordon>
</root>
