CrossCode: gamepad with mouse support

Had to tweak it so that the thumbstick was recognized as movement (it's using keyboard directions as movment, not the full 360 degree you'd get from a normal stick), as well as having the rt trackpad as mouse aiming so you can dedicate it for strictly ranged attacks.

For instructions on how to use this mapping with the Steam Controller in CrossCode, click the Download button or check out the instructions here.

Config Details

gamepad with mouse support
AutoUploader
0
2

Need help with how to use these configs? Click here!

Download

Code

"controller_mappings"
{
	"version"		"2"
	"title"		"gamepad with mouse support"
	"description"		"Had to tweak it so that the thumbstick was recognized as movement (it's using keyboard directions as movment, not the full 360 degree you'd get from a normal stick), as well as having the rt trackpad as mouse aiming so you can dedicate it for strictly ranged attacks."
	"creator"		"76561197986766557"
	"group"
	{
		"id"		"0"
		"mode"		"four_buttons"
		"bindings"
		{
			"button_A"		"xinput_button A"
			"button_B"		"xinput_button B"
			"button_X"		"xinput_button X"
			"button_Y"		"xinput_button Y"
		}
	}
	"group"
	{
		"id"		"1"
		"mode"		"dpad"
		"bindings"
		{
			"dpad_north"		"xinput_button dpad_up"
			"dpad_south"		"xinput_button dpad_down"
			"dpad_east"		"xinput_button dpad_right"
			"dpad_west"		"xinput_button dpad_left"
		}
		"settings"
		{
			"deadzone"		"5000"
		}
	}
	"group"
	{
		"id"		"2"
		"mode"		"joystick_camera"
		"bindings"
		{
			"click"		"xinput_button JOYSTICK_RIGHT"
		}
		"settings"
		{
			"output_joystick"		"1"
			"sensitivity"		"99"
		}
	}
	"group"
	{
		"id"		"3"
		"mode"		"joystick_move"
		"bindings"
		{
			"click"		"xinput_button JOYSTICK_LEFT"
		}
		"settings"
		{
			"edge_binding_radius"		"24999"
			"sensitivity"		"99"
		}
	}
	"group"
	{
		"id"		"4"
		"mode"		"trigger"
		"bindings"
		{
			"click"		"xinput_button TRIGGER_LEFT"
		}
		"settings"
		{
			"output_trigger"		"1"
		}
	}
	"group"
	{
		"id"		"5"
		"mode"		"trigger"
		"bindings"
		{
			"click"		"xinput_button TRIGGER_RIGHT"
		}
		"settings"
		{
			"output_trigger"		"2"
		}
	}
	"group"
	{
		"id"		"6"
		"mode"		"joystick_move"
		"bindings"
		{
			"click"		"xinput_button JOYSTICK_RIGHT"
		}
		"settings"
		{
			"output_joystick"		"1"
		}
	}
	"group"
	{
		"id"		"7"
		"mode"		"dpad"
		"bindings"
		{
			"dpad_north"		"key_press UP_ARROW"
			"dpad_south"		"key_press DOWN_ARROW"
			"dpad_east"		"key_press RIGHT_ARROW"
			"dpad_west"		"key_press LEFT_ARROW"
		}
		"settings"
		{
			"edge_binding_radius"		"24999"
			"analog_emulation_period"		"29"
		}
	}
	"group"
	{
		"id"		"8"
		"mode"		"absolute_mouse"
		"bindings"
		{
			"click"		"mouse_button LEFT"
		}
		"settings"
		{
			"sensitivity"		"447"
			"doubetap_max_duration"		"320"
		}
	}
	"preset"
	{
		"id"		"0"
		"name"		""
		"group_source_bindings"
		{
			"0"		"button_diamond active"
			"1"		"left_trackpad active"
			"2"		"right_trackpad inactive"
			"6"		"right_trackpad inactive"
			"8"		"right_trackpad active"
			"3"		"joystick inactive"
			"7"		"joystick active"
			"4"		"left_trigger active"
			"5"		"right_trigger active"
		}
		"switch_bindings"
		{
			"bindings"
			{
				"button_escape"		"xinput_button start"
				"button_menu"		"xinput_button select"
				"right_bumper"		"xinput_button shoulder_right"
				"left_bumper"		"xinput_button shoulder_left"
				"button_back_left"		"xinput_button a"
				"button_back_right"		"mouse_button LEFT"
			}
		}
		"settings"
		{
		}
	}
	"localization"
	{
		"english"
		{
			"title"		"Gamepad"
			"description"		"This template is for most games that already have built-in gamepad support."
		}
	}
}