<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>

	<ChooseBinding selectionpos="0,0" defaultfocus="BindingDescriptionTextEntry" onmoveleft="DoNothing();" onmoveright="SetInputFocus( actionset_options );" onmoveup="DoNothing();" onmovedown="DoNothing();">

		<Panel id="GameActions" selectionpos="auto">
			<Label id="GameActionsHeader" text="#Library_Details_GameActionsHeader">
				<Label id="SelectBindingIconHeaderGA" text="#Library_Details_SelectIcon" class="SelectBindingIconHeaderGA">
					<Button id="IconPreviewGA" class="IconPreviewGA" selectionpos="auto" onactivate="AddBindingIcon();">
						<Image id="BindingIconGA" src="file://{images}/library_default.tga" defaultsrc="file://{images}/library_default.tga" />
					</Button>
				</Label>
			</Label>
			<Panel id="GameActionsScrollContainer" selectionpos="auto">
				<Panel id="GameActionsContainer" selectionpos="auto"/>
			</Panel>
		</Panel>

    <Panel id="BindingDescriptionWrapper" selectionpos="0,0">
      <Label id="SelectBindingHeader" text="#Library_Details_SelectYourBindingFor" class="SelectBindingHeader" />
      <DropDown tabindex="-1" selectionpos="0,-1" id="BindingDescriptionDropDown" />
      <TextEntry tabindex="-2" selectionpos="0,-2" id="BindingDescriptionTextEntry" textinputid="BindingDescriptionTextInput" textinputdoneactionstring="#Library_Details_SaveBindingDescription" textinputclass="HalfWidth DockRight AppearFromBottomCenter" onmoveup="DoNothing();" onmoveleft="SetInputFocus( mouse_right_button );" onmoveright="SetInputFocus( actionset_options );" onmovedown="SetInputFocus( kb_key_esc );" ontabforward="SetInputFocus( kb_key_esc );" />
      <Button id="actionset_options" class="ControllerActionSetButton" selectionpos="0,-3" onactivate="ShowControllerActionExtendedSelector( controller_action, actionset_options );" onmoveleft="SetInputFocus( BindingDescriptionTextEntry )" onmoveright="SetInputFocus( show_keyboard );" onmovedown="SetInputFocus( kb_key_volup );" >
        <Image class="ChooseBindingIconImage" src="file://{images}/library/icon_choosebinding_actionset.png" />
      </Button>
      <Button id="show_keyboard" class="ControllerActionButton" selectionpos="0,-4" onactivate="SetBinding( controller_action, show_keyboard );" onmoveright="SetInputFocus( screenshot );" onmoveleft="SetInputFocus( actionset_options );" onmovedown="SetInputFocus( kb_key_volup );" >
        <Image class="ChooseBindingIconImage" src="file://{images}/library/icon_choosebinding_kb2.png" />
      </Button>
      <Button id="screenshot" selectionpos="0,-5" onactivate="SetBinding( controller_action, screenshot );" onmoveright="SetInputFocus( mouse_position );" onmoveleft="SetInputFocus( show_keyboard );" onmovedown="SetInputFocus( kb_key_voldown );" >
        <Image class="ChooseBindingIconImage" src="file://{images}/library/icon_choosebinding_shot.png" />
      </Button>
      <Button id="mouse_position" selectionpos="0,-6" onactivate="ShowMousePositionSelector( controller_action, mouse_position );" onmoveright="SetInputFocus( toggle_magnifier );" onmoveleft="SetInputFocus( screenshot );" onmovedown="SetInputFocus( kb_key_mute );" >
        <Image class="ChooseBindingIconImage" src="file://{images}/library/icon_choosebinding_mouse.png" />
      </Button>
      <Button id="toggle_magnifier" selectionpos="0,-7" onactivate="SetBinding( controller_action, toggle_magnifier );" onmoveright="SetInputFocus( power_options );" onmoveleft="SetInputFocus( mouse_position );" onmovedown="SetInputFocus( kb_key_play );" >
        <Image class="ChooseBindingIconImage" src="file://{images}/library/icon_choosebinding_magnify2.png" />
      </Button>
      <Button id="power_options" selectionpos="0,-7" onactivate="ShowControllerActionExtendedSelector( controller_action, power_options );" onmoveright="SetInputFocus( set_led );" onmoveleft="SetInputFocus( toggle_magnifier );" onmovedown="SetInputFocus( kb_key_stop );" >
        <Image class="ChooseBindingIconImage" src="file://{images}/library/icon_choosebinding_power.png" />
      </Button>
      <Button id="set_led" selectionpos="0,-7" onactivate="ShowSetLEDColorSelector( controller_action, set_led );" onmoveright="SetInputFocus( steammusic_options );" onmoveleft="SetInputFocus( power_options );" onmovedown="SetInputFocus( kb_key_next );" >
        <Image class="ChooseBindingIconImage" src="file://{images}/library/icon_choosebinding_light.png" />
      </Button>
      <Button id="steammusic_options" selectionpos="0,-7" onactivate="ShowControllerActionExtendedSelector( controller_action, steammusic_options );" onmoveright="SetInputFocus( empty_binding );" onmoveleft="SetInputFocus( set_led );" onmovedown="SetInputFocus( kb_key_previous );" >
        <Image class="ChooseBindingIconImage" src="file://{images}/library/icon_choosebinding_music.png" />
      </Button>
      <Button id="empty_binding" selectionpos="0,-8" onactivate="SetBinding( controller_action, empty_binding );" onmoveright="SetInputFocus( change_player_number );" onmoveleft="SetInputFocus( steammusic_options );" onmovedown="SetInputFocus( kb_key_previous );" >
        <Image class="ChooseBindingIconImage" src="file://{images}/library/icon_choosebinding_empty_binding.png" />
      </Button>
      <Button id="change_player_number" selectionpos="0,-9" onactivate="ShowControllerActionChangePlayerNumber( controller_action, change_player_number );" onmoveright="SetInputFocus( IconPreview );" onmoveleft="SetInputFocus( empty_binding );" onmovedown="SetInputFocus( left_trigger );" >
        <Image class="ChooseBindingIconImage" src="file://{images}/library/icon_choosebinding_playernumber.png" />
      </Button>      
      <Label id="SelectBindingIconHeader" text="#Library_Details_SelectIcon" class="SelectBindingIconHeader" />
      <Button id="IconPreview" class="IconPreview" selectionpos="0,-10" onactivate="AddBindingIcon();" onmoveleft="SetInputFocus( empty_binding );" onmoveright="SetInputFocus( left_trigger );">
        <Image id="BindingIcon" src="file://{images}/library/icon_choosebinding_none.png" defaultsrc="file://{images}/library/icon_choosebinding_none.png" />
      </Button>
    </Panel>
    <Panel id="RowOfBindings" tabindex="auto" selectionpos="-15,0">
      <Panel id="VirtualMouse" tabindex="auto" selectionpos="-15,0">
        <Button id="mouse_left_button" selectionpos="200,1" onmoveup="DoNothing();" onmovedown="SetInputFocus( mouse_back_button );" onactivate="SetBinding( mouse_button, left );" onmoveleft="SetInputFocus( button_b );" >
          <Label text="#ChooseBinding_LeftMouseInitial" />
        </Button>
        <Button id="mouse_scroll_up" selectionpos="201,0" onactivate="SetBinding( mouse_button, scroll_up );" onmoveup="SetInputFocus( mouse_delta )">
          <Label text="^" />
        </Button>
        <Button id="mouse_middle_button" selectionpos="201,1" onactivate="SetBinding( mouse_button, middle );">
          <Label text="#ChooseBinding_MiddleMouseInitial" />
        </Button>
        <Button id="mouse_scroll_down" selectionpos="201,2" onmoveright="SetInputFocus( mouse_right_button );" onmoveleft="SetInputFocus( mouse_left_button );" onmovedown="SetInputFocus( mouse_delta );" onactivate="SetBinding( mouse_button, scroll_down );">
          <Label text="^" />
        </Button>
        <Button id="mouse_right_button" selectionpos="202,1" onmoveright="SetInputFocus( kb_key_esc );" onmoveup="DoNothing();" onmovedown="SetInputFocus( mouse_forward_button );" onactivate="SetBinding( mouse_button, right );">
          <Label text="#ChooseBinding_RightMouseInitial" />
        </Button>
        <Button id="mouse_back_button" selectionpos="200,3" onmoveup="SetInputFocus( mouse_left_button );" onactivate="SetBinding( mouse_button, back );" onmoveright="SetInputFocus( mouse_forward_button );" onmoveleft="SetInputFocus( button_b );" onmovedown="SetInputFocus( mouse_delta );">
          <Label text="4" />
        </Button>
        <Button id="mouse_forward_button" selectionpos="202,3" onmoveup="SetInputFocus( mouse_right_button );" onmoveright="SetInputFocus( kb_key_tab );" onactivate="SetBinding( mouse_button, forward );" onmoveleft="SetInputFocus( mouse_back_button );" onmovedown="SetInputFocus( mouse_delta );">
          <Label text="5" />
        </Button>
        <Button id="mouse_delta" selectionpos="300,1" onmoveup="SetInputFocus( mouse_forward_button );" onmoveright="SetInputFocus( kb_key_tab );" onactivate="ShowMouseDeltaSelector();" onmoveleft="SetInputFocus( button_b);" onmovedown="SetInputFocus( mouse_scroll_up);">
          <Image class="ChooseBindingIconImage" src="file://{images}/library/controller/binding_icons/ghost_080_input_0140.png" />
        </Button>
      </Panel>

      <Panel id="KeyboardWrapper" selectionpos="0,1">


        <Panel id="VirtualKeyboard" tabindex="auto" selectionpos="0,1">
          <Panel id="VKBRow1" selectionpos="0,0">
            <Panel id="VKBCol1" selectionpos="15,0">
              <Button id="kb_key_esc" selectionpos="-13,0" onmoveleft="SetInputFocus( mouse_right_button );" onactivate="SetBinding( key_press, esc );" >
                <Label text="esc" />
              </Button>
              <Button id="kb_key_EMPTY" disabled="true" class="Empty" />
              <Button id="kb_key_f1" selectionpos="-11,0" onactivate="SetBinding( key_press, f1 );">
                <Label text="F1" />
              </Button>
              <Button id="kb_key_f2" selectionpos="-10,0" onactivate="SetBinding( key_press, f2 );">
                <Label text="F2" />
              </Button>
              <Button id="kb_key_f3" selectionpos="-9,0" onactivate="SetBinding( key_press, f3 );">
                <Label text="F3" />
              </Button>
              <Button id="kb_key_f4" selectionpos="-8,0" onactivate="SetBinding( key_press, f4 );">
                <Label text="F4" />
              </Button>
              <Button id="kb_key_f5" selectionpos="-7,0" onactivate="SetBinding( key_press, f5 );">
                <Label text="F5" />
              </Button>
              <Button id="kb_key_f6" selectionpos="-6,0" onactivate="SetBinding( key_press, f6 );">
                <Label text="F6" />
              </Button>
              <Button id="kb_key_f7" selectionpos="-5,0" onactivate="SetBinding( key_press, f7 );">
                <Label text="F7" />
              </Button>
              <Button id="kb_key_f8" selectionpos="-4,0" onactivate="SetBinding( key_press, f8 );">
                <Label text="F8" />
              </Button>
              <Button id="kb_key_f9" selectionpos="-3,0" onactivate="SetBinding( key_press, f9 );">
                <Label text="F9" />
              </Button>
              <Button id="kb_key_f10" selectionpos="-2,0" onactivate="SetBinding( key_press, f10 );">
                <Label text="F10" />
              </Button>
              <Button id="kb_key_f11" selectionpos="-1,0" onactivate="SetBinding( key_press, f11 );">
                <Label text="F11" />
              </Button>
              <Button id="kb_key_f12" selectionpos="0,0" onmoveup="SetInputFocus( actionset_options );" onactivate="SetBinding( key_press, f12 );">
                <Label text="F12" />
              </Button>
              <Button id="kb_key_EMPTY2" disabled="true" class="Empty" />
            </Panel>
            <Panel id="VKBCol2" selectionpos="30,0">
              <Button id="kb_key_volup" selectionpos="-2,0" onactivate="SetBinding( key_press, volumeup );" onmoveup="SetInputFocus( show_keyboard );">
                <Label text="#ChooseBinding_VolumeUp" />
              </Button>
              <Button id="kb_key_voldown" selectionpos="-1,0" onactivate="SetBinding( key_press, volumedown );" onmoveup="SetInputFocus( screenshot );">
                <Label text="#ChooseBinding_VolumeDown" />
              </Button>
              <Button id="kb_key_mute" selectionpos="0,0" onmoveright="SetInputFocus( kb_key_play );" onmoveup="SetInputFocus( mouse_position );" onactivate="SetBinding( key_press, mute );">
                <Label text="#ChooseBinding_VolumeMute" />
              </Button>
              <Button id="kb_key_play" selectionpos="1,0" onmovedown="SetInputFocus( kb_key_numlock );" onmoveup="SetInputFocus( toggle_magnifier );" onactivate="SetBinding( key_press, play );">
                <Label text="#ChooseBinding_MusicPlay" />
              </Button>
              <Button id="kb_key_stop" selectionpos="2,0" onmovedown="SetInputFocus( kb_key_pad_forwardslash );" onmoveup="SetInputFocus( power_options );" onactivate="SetBinding( key_press, stop );">
                <Label text="#ChooseBinding_MusicStop" />
              </Button>
              <Button id="kb_key_next" selectionpos="3,0" onmovedown="SetInputFocus( kb_key_pad_asterisk );" onmoveright="SetInputFocus( kb_key_previous );" onmoveup="SetInputFocus( set_led );" onactivate="SetBinding( key_press, next );">
                <Label text="#ChooseBinding_MusicNextTrack" />
              </Button>
              <Button id="kb_key_previous" selectionpos="4,0" onmovedown="SetInputFocus( kb_key_pad_dash );" onmoveright="SetInputFocus( left_trigger );" onmoveup="SetInputFocus( steammusic_options );" onactivate="SetBinding( key_press, prev );">
                <Label text="#ChooseBinding_MusicPrevTrack" />
              </Button>
            </Panel>
          </Panel>
          <Panel id="VKBRow2" selectionpos="0,1">
            <Panel id="VKBCol1" selectionpos="15,0">
              <Button id="kb_key_backtick" selectionpos="-13,1" onactivate="SetBinding( key_press, backtick );">
                <Label text="`" />
              </Button>
              <Button id="kb_key_1" selectionpos="-12,1" onactivate="SetBinding( key_press, 1 );">
                <Label text="1" />
              </Button>
              <Button id="kb_key_2" selectionpos="-11,1" onactivate="SetBinding( key_press, 2 );">
                <Label text="2" />
              </Button>
              <Button id="kb_key_3" selectionpos="-10,1" onactivate="SetBinding( key_press, 3 );">
                <Label text="3" />
              </Button>
              <Button id="kb_key_4" selectionpos="-9,1" onactivate="SetBinding( key_press, 4 );">
                <Label text="4" />
              </Button>
              <Button id="kb_key_5" selectionpos="-8,1" onactivate="SetBinding( key_press, 5 );">
                <Label text="5" />
              </Button>
              <Button id="kb_key_6" selectionpos="-7,1" onactivate="SetBinding( key_press, 6 );">
                <Label text="6" />
              </Button>
              <Button id="kb_key_7" selectionpos="-6,1" onactivate="SetBinding( key_press, 7 );">
                <Label text="7" />
              </Button>
              <Button id="kb_key_8" selectionpos="-5,1" onactivate="SetBinding( key_press, 8 );">
                <Label text="8" />
              </Button>
              <Button id="kb_key_9" selectionpos="-4,1" onactivate="SetBinding( key_press, 9 );">
                <Label text="9" />
              </Button>
              <Button id="kb_key_0" selectionpos="-3,1" onactivate="SetBinding( key_press, 0 );">
                <Label text="0" />
              </Button>
              <Button id="kb_key_dash" selectionpos="-2,1" onactivate="SetBinding( key_press, dash );">
                <Label text="-" />
              </Button>
              <Button id="kb_key_equals" selectionpos="-1,1" onactivate="SetBinding( key_press, equals );">
                <Label text="=" />
              </Button>
              <Button id="kb_key_backspace" selectionpos="0,1" onactivate="SetBinding( key_press, backspace );">
                <Label text="#ChooseBinding_Backspace" />
              </Button>
            </Panel>
            <Panel id="VKBCol2" selectionpos="30,0">
              <Button id="kb_key_insert" selectionpos="-2,1" onactivate="SetBinding( key_press, insert );">
                <Label text="#ChooseBinding_Insert" />
              </Button>
              <Button id="kb_key_home" selectionpos="-1,1" onactivate="SetBinding( key_press, home );">
                <Label text="#ChooseBinding_Home" />
              </Button>
              <Button id="kb_key_pageup" selectionpos="0,1" onactivate="SetBinding( key_press, pageup );">
                <Label text="#ChooseBinding_PageUp" />
              </Button>
            </Panel>
            <Panel id="VKBCol3" selectionpos="45,0">
              <Button id="kb_key_numlock" selectionpos="-3,1" onmoveup="SetInputFocus( kb_key_play );" onactivate="SetBinding( key_press, numlock );">
                <Label text="NL" />
              </Button>
              <Button id="kb_key_pad_forwardslash" selectionpos="-2,1" onmoveup="SetInputFocus( kb_key_stop );" onactivate="SetBinding( key_press, pad_forwardslash );">
                <Label text="/" />
              </Button>
              <Button id="kb_key_pad_asterisk" selectionpos="-1,1" onmoveup="SetInputFocus( kb_key_next );" onactivate="SetBinding( key_press, pad_asterisk );">
                <Label text="*" />
              </Button>
              <Button id="kb_key_pad_dash" selectionpos="0,1" onmoveup="SetInputFocus( kb_key_previous );" onactivate="SetBinding( key_press, pad_dash );">
                <Label text="-" />
              </Button>
            </Panel>
          </Panel>
          <Panel id="VKBRow3" selectionpos="0,2">
            <Panel id="VKBCol1" selectionpos="15,0">
              <Button id="kb_key_tab" selectionpos="-13,2" onactivate="SetBinding( key_press, tab );">
                <Label text="#ChooseBinding_Tab" />
              </Button>
              <Button id="kb_key_q" selectionpos="-12,2" onactivate="SetBinding( key_press, q );">
                <Label text="Q" />
              </Button>
              <Button id="kb_key_w" selectionpos="-11,2" onactivate="SetBinding( key_press, w );">
                <Label text="W" />
              </Button>
              <Button id="kb_key_e" selectionpos="-10,2" onactivate="SetBinding( key_press, e );">
                <Label text="E" />
              </Button>
              <Button id="kb_key_r" selectionpos="-9,2" onactivate="SetBinding( key_press, r );">
                <Label text="R" />
              </Button>
              <Button id="kb_key_t" selectionpos="-8,2" onactivate="SetBinding( key_press, t );">
                <Label text="T" />
              </Button>
              <Button id="kb_key_y" selectionpos="-7,2" onactivate="SetBinding( key_press, y );">
                <Label text="Y" />
              </Button>
              <Button id="kb_key_u" selectionpos="-6,2" onactivate="SetBinding( key_press, u );">
                <Label text="U" />
              </Button>
              <Button id="kb_key_i" selectionpos="-5,2" onactivate="SetBinding( key_press, i );">
                <Label text="I" />
              </Button>
              <Button id="kb_key_o" selectionpos="-4,2" onactivate="SetBinding( key_press, o );">
                <Label text="O" />
              </Button>
              <Button id="kb_key_p" selectionpos="-3,2" onactivate="SetBinding( key_press, p );">
                <Label text="P" />
              </Button>
              <Button id="kb_key_lbracket" selectionpos="-2,2" onactivate="SetBinding( key_press, lbracket );">
                <Label text="[" />
              </Button>
              <Button id="kb_key_rbracket" selectionpos="-1,2" onactivate="SetBinding( key_press, rbracket );">
                <Label text="]" />
              </Button>
              <Button id="kb_key_backslash" selectionpos="0,2" onactivate="SetBinding( key_press, backslash );">
                <Label text="\\\" />
              </Button>
            </Panel>
            <Panel id="VKBCol2" selectionpos="30,0">
              <Button id="kb_key_delete" selectionpos="-2,2" onactivate="SetBinding( key_press, delete );" onmovedown="SetInputFocus( kb_key_left );">
                <Label text="#ChooseBinding_Delete" />
              </Button>
              <Button id="kb_key_end" selectionpos="-1,2" onactivate="SetBinding( key_press, end );" onmovedown="SetInputFocus( kb_key_up );">
                <Label text="#ChooseBinding_End" />
              </Button>
              <Button id="kb_key_pagedown" selectionpos="0,2" onactivate="SetBinding( key_press, pagedown );" onmovedown="SetInputFocus( kb_key_right );">
                <Label text="#ChooseBinding_PageDown" />
              </Button>
            </Panel>
            <Panel id="VKBCol3" selectionpos="45,0">
              <Button id="kb_key_pad_7" selectionpos="-3,2" onactivate="SetBinding( key_press, pad_7 );">
                <Label text="7" />
              </Button>
              <Button id="kb_key_pad_8" selectionpos="-2,2" onactivate="SetBinding( key_press, pad_8 );">
                <Label text="8" />
              </Button>
              <Button id="kb_key_pad_9" selectionpos="-1,2" onactivate="SetBinding( key_press, pad_9 );">
                <Label text="9" />
              </Button>
              <Button id="kb_key_pad_plus" selectionpos="0,2" onmovedown="SetInputFocus( kb_key_pad_enter );" onmoveright="SetInputFocus( lstick_left );" onactivate="SetBinding( key_press, pad_plus );">
                <Label text="+" />
              </Button>
            </Panel>
          </Panel>
          <Panel id="VKBRow4" selectionpos="0,3">
            <Panel id="VKBCol1" selectionpos="15,0">
              <Button id="kb_key_capslock" selectionpos="-13,3" onactivate="SetBinding( key_press, capslock );">
                <Label text="#ChooseBinding_Capslock" />
              </Button>
              <Button id="kb_key_a" selectionpos="-12,3" onactivate="SetBinding( key_press, a );">
                <Label text="A" />
              </Button>
              <Button id="kb_key_s" selectionpos="-11,3" onactivate="SetBinding( key_press, s );">
                <Label text="S" />
              </Button>
              <Button id="kb_key_d" selectionpos="-10,3" onactivate="SetBinding( key_press, d );">
                <Label text="D" />
              </Button>
              <Button id="kb_key_f" selectionpos="-9,3" onactivate="SetBinding( key_press, f );">
                <Label text="F" />
              </Button>
              <Button id="kb_key_g" selectionpos="-8,3" onactivate="SetBinding( key_press, g );">
                <Label text="G" />
              </Button>
              <Button id="kb_key_h" selectionpos="-7,3" onactivate="SetBinding( key_press, h );">
                <Label text="H" />
              </Button>
              <Button id="kb_key_j" selectionpos="-6,3" onactivate="SetBinding( key_press, j );">
                <Label text="J" />
              </Button>
              <Button id="kb_key_k" selectionpos="-5,3" onactivate="SetBinding( key_press, k );">
                <Label text="K" />
              </Button>
              <Button id="kb_key_l" selectionpos="-4,3" onactivate="SetBinding( key_press, l );">
                <Label text="L" />
              </Button>
              <Button id="kb_key_semicolon" selectionpos="-3,3" onactivate="SetBinding( key_press, semicolon );">
                <Label text=";" />
              </Button>
              <Button id="kb_key_singlequote" selectionpos="-2,3" onactivate="SetBinding( key_press, singlequote );">
                <Label text="'" />
              </Button>
              <Button id="kb_key_enter" selectionpos="-1,3" onactivate="SetBinding( key_press, enter );" onmoveright="SetInputFocus( kb_key_pad_4 );" ontabforward="SetInputFocus( kb_key_pad_4 );">
                <Label text="#ChooseBinding_Enter" />
              </Button>
            </Panel>
            <Panel id="VKBCol2">
              <Button disabled="true" class="Empty" />
              <Button disabled="true" class="Empty" />
              <Button disabled="true" class="Empty" />
            </Panel>
            <Panel id="VKBCol3" selectionpos="45,0">
              <Button id="kb_key_pad_4" selectionpos="-3,3" onactivate="SetBinding( key_press, pad_4 );" onmoveleft="SetInputFocus( kb_key_enter );" ontabbackward="SetInputFocus( kb_key_enter );">
                <Label text="4" />
              </Button>
              <Button id="kb_key_pad_5" selectionpos="-2,3" onactivate="SetBinding( key_press, pad_5 );">
                <Label text="5" />
              </Button>
              <Button id="kb_key_pad_6" selectionpos="-1,3" onmoveright="SetInputFocus( left_joystick );"  onactivate="SetBinding( key_press, pad_6 );">
                <Label text="6" />
              </Button>
            </Panel>
          </Panel>
          <Panel id="VKBRow5" selectionpos="0,4">
            <Panel id="VKBCol1" selectionpos="15,0">
              <Button id="kb_key_lshift" selectionpos="-13,4" onactivate="SetBinding( key_press, lshift );">
                <Label text="#ChooseBinding_Shift" />
              </Button>
              <Button id="kb_key_z" selectionpos="-12,4" onactivate="SetBinding( key_press, z );">
                <Label text="Z" />
              </Button>
              <Button id="kb_key_x" selectionpos="-11,4" onactivate="SetBinding( key_press, x );">
                <Label text="X" />
              </Button>
              <Button id="kb_key_c" selectionpos="-10,4" onactivate="SetBinding( key_press, c );" onmovedown="SetInputFocus( kb_key_space );">
                <Label text="C" />
              </Button>
              <Button id="kb_key_v" selectionpos="-9,4" onactivate="SetBinding( key_press, v );" onmovedown="SetInputFocus( kb_key_space );">
                <Label text="V" />
              </Button>
              <Button id="kb_key_b" selectionpos="-8,4" onactivate="SetBinding( key_press, b );" onmovedown="SetInputFocus( kb_key_space );">
                <Label text="B" />
              </Button>
              <Button id="kb_key_n" selectionpos="-7,4" onactivate="SetBinding( key_press, n );" onmovedown="SetInputFocus( kb_key_space );">
                <Label text="N" />
              </Button>
              <Button id="kb_key_m" selectionpos="-6,4" onactivate="SetBinding( key_press, m );" onmovedown="SetInputFocus( kb_key_space );">
                <Label text="M" />
              </Button>
              <Button id="kb_key_comma" selectionpos="-5,4" onactivate="SetBinding( key_press, comma );" onmovedown="SetInputFocus( kb_key_space );">
                <Label text="," />
              </Button>
              <Button id="kb_key_period" selectionpos="-4,4" onactivate="SetBinding( key_press, period );">
                <Label text="." />
              </Button>
              <Button id="kb_key_forwardslash" selectionpos="-3,4" onactivate="SetBinding( key_press, forwardslash );">
                <Label text="/" />
              </Button>
              <Button id="kb_key_rshift" selectionpos="-2,4" onactivate="SetBinding( key_press, rshift );">
                <Label text="#ChooseBinding_Shift" />
              </Button>
            </Panel>
            <Panel id="VKBCol2" selectionpos="30,0">
              <Button disabled="true" class="Empty" />
              <Button id="kb_key_up" selectionpos="-2,4" onactivate="SetBinding( key_press, up );" onmoveup="SetInputFocus( kb_key_end );">
                <Label text="^" />
              </Button>
              <Button disabled="true" class="Empty" />
            </Panel>
            <Panel id="VKBCol3" selectionpos="45,0">
              <Button id="kb_key_pad_1" selectionpos="-3,4" onactivate="SetBinding( key_press, pad_1 );">
                <Label text="1" />
              </Button>
              <Button id="kb_key_pad_2" selectionpos="-2,4" onactivate="SetBinding( key_press, pad_2 );">
                <Label text="2" />
              </Button>
              <Button id="kb_key_pad_3" selectionpos="-1,4" onactivate="SetBinding( key_press, pad_3 );">
                <Label text="3" />
              </Button>
              <Button id="kb_key_pad_enter" selectionpos="0,4" onmoveup="SetInputFocus( kb_key_pad_plus );" onactivate="SetBinding( key_press, pad_enter );">
                <Label text="ChooseBinding_EnterKeyPad" />
              </Button>
            </Panel>
          </Panel>
          <Panel id="VKBRow6" selectionpos="0,5">
            <Panel id="VKBCol1" selectionpos="15,0">
              <Button id="kb_key_lcontrol" selectionpos="-13,5" onactivate="SetBinding( key_press, lcontrol );">
                <Label text="#ChooseBinding_Control" />
              </Button>
              <Button id="kb_key_lwin" selectionpos="-12,5" onactivate="SetBinding( key_press, lwin );">
                <Label text="#ChooseBinding_Windows" />
              </Button>
              <Button id="kb_key_lalt" selectionpos="-11,5" onactivate="SetBinding( key_press, lalt );">
                <Label text="#ChooseBinding_Alt" />
              </Button>
              <Button id="kb_key_space" selectionpos="-10,5" onactivate="SetBinding( key_press, space );">
                <Label text="#ChooseBinding_Space" />
              </Button>
              <Button id="kb_key_ralt" selectionpos="-3,5" onactivate="SetBinding( key_press, ralt );">
                <Label text="#ChooseBinding_Alt" />
              </Button>
              <Button id="kb_key_rcontrol" selectionpos="-2,5" onactivate="SetBinding( key_press, rcontrol );">
                <Label text="#ChooseBinding_Control" />
              </Button>
            </Panel>
            <Panel id="VKBCol2" selectionpos="30,0">
              <Button id="kb_key_left" selectionpos="-3,5" onactivate="SetBinding( key_press, left );" onmoveup="SetInputFocus( kb_key_delete );">
                <Label text="^" />
              </Button>
              <Button id="kb_key_down" selectionpos="-2,5" onactivate="SetBinding( key_press, down );">
                <Label text="^" />
              </Button>
              <Button id="kb_key_right" selectionpos="-1,5" onactivate="SetBinding( key_press, right );" onmoveup="SetInputFocus( kb_key_pagedown );">
                <Label text="^" />
              </Button>
            </Panel>
            <Panel id="VKBCol3" selectionpos="45,0">
              <Button id="kb_key_pad_0" selectionpos="-3,5" onactivate="SetBinding( key_press, pad_0 );">
                <Label text="0" />
              </Button>
              <Button id="kb_key_pad_period" selectionpos="-1,5" onactivate="SetBinding( key_press, pad_period );">
                <Label text="." />
              </Button>
            </Panel>
          </Panel>
        </Panel>
      </Panel>

      <Panel id="VirtualGamepad" tabindex="auto" selectionpos="100,0">
        <Panel id="GamepadBoundLayer" />
        <Panel id="GamepadBoundLayerLT" />
        <Panel id="GamepadBoundLayerRT" />
        <Panel id="GamepadBoundLayerLB" />
        <Panel id="GamepadBoundLayerRB" />
        <Panel id="GamepadBoundLayerLS" />
        <Panel id="GamepadBoundLayerRS" />
        <Panel id="GamepadBoundLayerBK" />
        <Panel id="GamepadBoundLayerST" />
        <Panel id="GamepadBoundLayerA" />
        <Panel id="GamepadBoundLayerB" />
        <Panel id="GamepadBoundLayerX" />
        <Panel id="GamepadBoundLayerY" />
        <Panel id="GamepadBoundLayerDPDN" />
        <Panel id="GamepadBoundLayerDPUP" />
        <Panel id="GamepadBoundLayerDPLT" />
        <Panel id="GamepadBoundLayerDPRT" />
        <Panel id="GamepadBoundLayerLSLeft" />
        <Panel id="GamepadBoundLayerLSRight" />
        <Panel id="GamepadBoundLayerLSUp" />
        <Panel id="GamepadBoundLayerLSDown" />
        <Panel id="GamepadBoundLayerRSLeft" />
        <Panel id="GamepadBoundLayerRSRight" />
        <Panel id="GamepadBoundLayerRSUp" />
        <Panel id="GamepadBoundLayerRSDown" />
        <Panel id="GamepadFocusLayer" />

        <Panel id="GamepadRowWrapper">
          <Panel id="GamepadTopRow" selectionpos="0,0">
            <Panel id="LeftTriggerShoulderWrapper" selectionpos="15,0">
              <Button class="GamepadButton" id="left_trigger" selectionpos="-1,0" onmoveleft="SetInputFocus( kb_key_previous );" onmovedown="SetInputFocus( left_shoulder );" onmoveup="SetInputFocus( change_player_number );" onactivate="SetBinding( gamepad, trigger_left );" />
              <Button class="GamepadButton" id="left_shoulder" selectionpos="-1,1" onmoveleft="SetInputFocus( kb_key_pad_dash );" onmovedown="SetInputFocus( lstick_up );" onactivate="SetBinding( gamepad, shoulder_left );" />
            </Panel>
            <Panel id="RightTriggerShoulderWrapper" selectionpos="75,0">
              <Button class="GamepadButton" id="right_trigger" selectionpos="0,0" onmoveright="SetInputFocus( mouse_left_button );" onactivate="SetBinding( gamepad, trigger_right );" />
              <Button class="GamepadButton" id="right_shoulder" selectionpos="0,1" onmoveright="SetInputFocus( mouse_left_button );" onactivate="SetBinding( gamepad, shoulder_right );" />
            </Panel>
          </Panel>
          <Panel id="GamepadMiddleRow" selectionpos="0,1">
            <Button class="GamepadButton" id="left_joystick" selectionpos="15,1" onactivate="SetBinding( gamepad, joystick_left );" onmoveleft="SetInputFocus( lstick_left );" onmovedown="SetInputFocus( lstick_down );" onmoveright="SetInputFocus( lstick_right );" onmoveup="SetInputFocus( lstick_up );" />
            <Panel id="GamepadLeftStickDirections" selectionpos="0,1">
              <Button class="GamepadButton" id="lstick_up" selectionpos="15,1" onactivate="SetBinding( gamepad, lstick_up );" onmoveleft="SetInputFocus( kb_key_pad_plus );" onmovedown="SetInputFocus( left_joystick );" />
              <Button class="GamepadButton" id="lstick_down" selectionpos="15,1" onactivate="SetBinding( gamepad, lstick_down );" onmoveleft="SetInputFocus( kb_key_pad_plus );" onmoveup="SetInputFocus( left_joystick );" onmovedown="SetInputFocus( dpad_up );" />
              <Button class="GamepadButton" id="lstick_left" selectionpos="15,1" onactivate="SetBinding( gamepad, lstick_left );" onmoveleft="SetInputFocus( kb_key_pad_plus );" onmoveright="SetInputFocus( left_joystick );" />
              <Button class="GamepadButton" id="lstick_right" selectionpos="15,1" onactivate="SetBinding( gamepad, lstick_right );" onmoveleft="SetInputFocus( left_joystick );" onmoveright="SetInputFocus( button_select );" onmovedown="SetInputFocus( dpad_up );" />
            </Panel>
            <Button class="GamepadButton" id="button_select" selectionpos="45,2" onactivate="SetBinding( gamepad, select );" onmoveup="SetInputFocus( left_shoulder );" onmoveleft="SetInputFocus( lstick_right );" />
            <Button class="GamepadButton" id="button_start" selectionpos="55,2" onactivate="SetBinding( gamepad, start );" onmoveup="SetInputFocus( right_shoulder );" onmovedown="SetInputFocus( rstick_up );" />
            <Panel id="ABXYWrapper" selectionpos="75,1">
              <Button class="GamepadButton" id="button_y" selectionpos="1,0" onactivate="SetBinding( gamepad, y );" onmoveright="SetInputFocus( mouse_left_button );" />
              <Panel id="ABXYMiddleWrapper" selectionpos="0,1">
                <Button class="GamepadButton" id="button_x" selectionpos="0,0" onactivate="SetBinding( gamepad, x );" />
                <Button class="GamepadButton" id="button_b" selectionpos="2,0" onactivate="SetBinding( gamepad, b );" onmoveright="SetInputFocus( mouse_left_button );" />
              </Panel>
              <Button class="GamepadButton" id="button_a" selectionpos="1,2" onactivate="SetBinding( gamepad, a );" onmovedown="SetInputFocus( rstick_up );" onmoveleft="SetInputFocus( button_x );" onmoveright="SetInputFocus( button_b );" />
            </Panel>
          </Panel>
          <Panel id="GamepadBottomRow" selectionpos="1,2">
            <Panel id="DpadWrapper" selectionpos="30,2">
              <Button class="GamepadButton" id="dpad_up" selectionpos="1,0" onactivate="SetBinding( gamepad, dpad_up );" onmoveup="SetInputFocus( lstick_down );" onmovedown="SetInputFocus( dpad_down );"/>
              <Panel id="DpadMiddleWrapper" selectionpos="0,1">
                <Button class="GamepadButton" id="dpad_left" selectionpos="0,0" onactivate="SetBinding( gamepad, dpad_left );" onmoveleft="SetInputFocus( kb_key_pad_6 );" />
                <Button class="GamepadButton" id="dpad_right" selectionpos="2,0" onactivate="SetBinding( gamepad, dpad_right );" onmoveright="SetInputFocus( rstick_left );" />
              </Panel>
              <Button class="GamepadButton" id="dpad_down" selectionpos="1,2" onmoveright="SetInputFocus( dpad_right );" onactivate="SetBinding( gamepad, dpad_down );" />
            </Panel>
            <Button class="GamepadButton" id="right_joystick" selectionpos="60,2" onactivate="SetBinding( gamepad, joystick_right );" onmoveleft="SetInputFocus( rstick_left );" onmoveright="SetInputFocus( rstick_right );" onmoveup="SetInputFocus( rstick_up );" onmovedown="SetInputFocus( rstick_down );" />
            <Panel id="GamepadRightStickDirections" selectionpos="0,1">
              <Button class="GamepadButton" id="rstick_up" selectionpos="60,2" onactivate="SetBinding( gamepad, rstick_up );" onmoveleft="SetInputFocus( dpad_right );" onmovedown="SetInputFocus( right_joystick );" />
              <Button class="GamepadButton" id="rstick_down" selectionpos="60,2" onactivate="SetBinding( gamepad, rstick_down );" onmoveleft="SetInputFocus( dpad_right );" onmoveup="SetInputFocus( right_joystick );" />
              <Button class="GamepadButton" id="rstick_left" selectionpos="60,2" onactivate="SetBinding( gamepad, rstick_left );" onmoveleft="SetInputFocus( dpad_right );" onmoveright="SetInputFocus( right_joystick );"/>
              <Button class="GamepadButton" id="rstick_right" selectionpos="60,2" onactivate="SetBinding( gamepad, rstick_right );" onmoveleft="SetInputFocus( right_joystick );" />
            </Panel>
          </Panel>
        </Panel>
      </Panel>

    </Panel>

	</ChooseBinding>
</root>
