<Bindings>
	<!-- Calibration D-pad -->
	<Binding name="CP_L_UP" category="ConsolePort " header="CP_LEFT"/>
	<Binding name="CP_L_DOWN" category="ConsolePort "/>
	<Binding name="CP_L_LEFT" category="ConsolePort "/>
	<Binding name="CP_L_RIGHT" category="ConsolePort "/>
	
	<!-- Calibration XYAB -->
	<Binding name="CP_R_UP" category="ConsolePort " header="CP_RIGHT"/>
	<Binding name="CP_R_DOWN" category="ConsolePort "/>
	<Binding name="CP_R_LEFT" category="ConsolePort "/>
	<Binding name="CP_R_RIGHT" category="ConsolePort "/>

	<!-- Calibration center -->
	<Binding name="CP_X_RIGHT" category="ConsolePort " header="CP_CENTER"/>
	<Binding name="CP_X_CENTER" category="ConsolePort "/>
	<Binding name="CP_X_LEFT" category="ConsolePort "/>

	<!-- Calibration triggers -->
	<Binding name="CP_T1" category="ConsolePort " header="CP_TRIG"/>
	<Binding name="CP_T2" category="ConsolePort "/>

	<Binding name="CP_T3" category="ConsolePort "/>
	<Binding name="CP_T4" category="ConsolePort "/>

	<!-- Calibration arbitrary -->
	<Binding name="CP_T5" category="ConsolePort " header="CP_EXTRA"/>
	<Binding name="CP_T6" category="ConsolePort "/>

	<Binding name="CP_T7" category="ConsolePort "/>
	<Binding name="CP_T8" category="ConsolePort "/>

	<!-- Radial -->
	<Binding name="CP_RADIAL_VERT" hidden="true"/>
	<Binding name="CP_RADIAL_HORZ" hidden="true"/>

	<!-- Custom bindings -->
	<Binding name="WM_UPDATE" hidden="true">
		if ConsolePort and ConsolePort.WMupdate then
			ConsolePort:WMupdate()
		else
			print("WoWmapper attempted to update your settings prematurely.\nUse /reload to apply new settings.")
		end
	</Binding>
	<Binding name="CP_TOGGLEMOUSE" hidden="true">
		ConsolePortCamera:Toggle()
	</Binding>
	<Binding name="CP_CAMZOOMIN" hidden="true">
		CameraZoomIn(5.0);
	</Binding>
	<Binding name="CP_CAMZOOMOUT" hidden="true">
		CameraZoomOut(5.0);
	</Binding>
	<Binding name="CP_ZOOMIN_HOLD" runOnUp="true" hidden="true">
		if ( keystate == "down" ) then
			ConsolePort:CameraZoom(true, 1);
		else
			ConsolePort:CameraZoom(false);
		end
	</Binding>
	<Binding name="CP_ZOOMOUT_HOLD" runOnUp="true" hidden="true">
		if ( keystate == "down" ) then
			ConsolePort:CameraZoom(true, -1);
		else
			ConsolePort:CameraZoom(false);
		end
	</Binding>
	<Binding name="CP_CAMLOOKBEHIND" runOnUp="true" hidden="true">
		if ( keystate == "down" ) then
			FlipCameraYaw(180);
		else
			FlipCameraYaw(180);
		end
	</Binding>
	
</Bindings>
