"controller_mappings"
{
	"version"		"3"
	"title"		"Legend of Grimrock Arven"
	"description"		"This binding is made for a Party with mage in lower right corner! It has bindings based on mouse position so moveing the small character icons in the game interface will make it useless. \"A\", \"B\", \"X\", \"Y\", > Right hand skills of correspondent character. Mage should be in bottom right corner leave right hand empty to use runes. (maybe I will set up the binding for each char to be used as a mage but I have no paitence to do it ATM)Holding down \"B\" will shift the \"left touchpad\" to a TOUCH MENU. To activate a rune you will need to DOUBLE CLICK on the right option and then DOUBLE PRESS \"B\" to cast the spell. Holding down \"Right Grip\" will modify \"A\", \"B\", \"X\", \"Y\", bottoms to use left hand skills on corrispondent character icon and it will also MODE SHIFT the \"Right Touchpad\" a TOUCH MENU for quicksave/load/rest/map."
	"creator"		"76561198085294234"
	"controller_type"		"controller_steamcontroller_gordon"
	"group"
	{
		"id"		"0"
		"mode"		"four_buttons"
		"inputs"
		{
			"button_a"
			{
				"activators"
				{
					"Full_Press"
					{
						"bindings"
						{
							"binding"		"mouse_button RIGHT, Char 3 Use skill"
							"binding"		"mouse_button RIGHT, Char 3 Use skill"
							"binding"		"controller_action MOUSE_POSITION 27544 30643 0, Char 3 Use skill"
						}
					}
				}
			}
			"button_B"
			{
				"activators"
				{
					"Full_Press"
					{
						"bindings"
						{
							"binding"		"controller_action MOUSE_POSITION 31896 30703 0, Char Mage 4 Use Skill/cast spell"
							"binding"		"controller_action MOUSE_POSITION 31896 30703 0, Char Mage 4 Use Skill/cast spell"
							"binding"		"mouse_button RIGHT, Char Mage 4 Use Skill/cast spell"
						}
					}
				}
			}
			"button_X"
			{
				"activators"
				{
					"Full_Press"
					{
						"bindings"
						{
							"binding"		"controller_action MOUSE_POSITION 27715 25606 0, Char 1 Use skill"
							"binding"		"controller_action MOUSE_POSITION 27715 25606 0, Char 1 Use skill"
							"binding"		"mouse_button RIGHT, Char 1 Use skill"
						}
					}
				}
			}
			"button_y"
			{
				"activators"
				{
					"Full_Press"
					{
						"bindings"
						{
							"binding"		"controller_action MOUSE_POSITION 31350 25394 0, Char 2 Use skill"
							"binding"		"controller_action MOUSE_POSITION 31350 25394 0, Char 2 Use skill"
							"binding"		"mouse_button RIGHT, Char 2 Use skill"
						}
					}
				}
			}
		}
	}
	"group"
	{
		"id"		"1"
		"mode"		"dpad"
		"inputs"
		{
			"dpad_north"
			{
				"activators"
				{
					"Full_Press"
					{
						"bindings"
						{
							"binding"		"key_press W, Walk Forward"
						}
						"settings"
						{
							"haptic_intensity"		"1"
						}
					}
				}
			}
			"dpad_south"
			{
				"activators"
				{
					"Full_Press"
					{
						"bindings"
						{
							"binding"		"key_press S, Walk Backwards"
						}
						"settings"
						{
							"haptic_intensity"		"1"
						}
					}
				}
			}
			"dpad_east"
			{
				"activators"
				{
					"Full_Press"
					{
						"bindings"
						{
							"binding"		"key_press D, Strafe Right"
						}
						"settings"
						{
							"haptic_intensity"		"1"
						}
					}
				}
			}
			"dpad_west"
			{
				"activators"
				{
					"Full_Press"
					{
						"bindings"
						{
							"binding"		"key_press A, Strafe Left"
						}
						"settings"
						{
							"haptic_intensity"		"1"
						}
					}
				}
			}
			"click"
			{
				"activators"
				{
					"Full_Press"
					{
						"bindings"
						{
							"binding"		"key_press R, Rest"
						}
						"settings"
						{
							"haptic_intensity"		"1"
						}
					}
				}
			}
		}
		"settings"
		{
			"requires_click"		"0"
		}
	}
	"group"
	{
		"id"		"2"
		"mode"		"dpad"
		"inputs"
		{
			"dpad_north"
			{
				"activators"
				{
					"Full_Press"
					{
						"bindings"
						{
							"binding"		"key_press 2, Char 2 Inventory"
						}
						"settings"
						{
							"haptic_intensity"		"1"
						}
					}
				}
			}
			"dpad_south"
			{
				"activators"
				{
					"Full_Press"
					{
						"bindings"
						{
							"binding"		"key_press 3, Char 3 Inventory"
						}
						"settings"
						{
							"haptic_intensity"		"1"
						}
					}
				}
			}
			"dpad_east"
			{
				"activators"
				{
					"Full_Press"
					{
						"bindings"
						{
							"binding"		"key_press 4, Char 5 Inventory"
						}
						"settings"
						{
							"haptic_intensity"		"1"
						}
					}
				}
			}
			"dpad_west"
			{
				"activators"
				{
					"Full_Press"
					{
						"bindings"
						{
							"binding"		"key_press 1, Char 1 Inventory"
						}
						"settings"
						{
							"haptic_intensity"		"1"
						}
					}
				}
			}
		}
	}
	"group"
	{
		"id"		"3"
		"mode"		"absolute_mouse"
		"inputs"
		{
			"click"
			{
				"activators"
				{
					"Full_Press"
					{
						"bindings"
						{
							"binding"		"key_press LEFT_SHIFT, Handle single items"
						}
						"settings"
						{
							"haptic_intensity"		"1"
						}
					}
				}
			}
		}
	}
	"group"
	{
		"id"		"4"
		"mode"		"trigger"
		"inputs"
		{
			"edge"
			{
				"activators"
				{
					"Full_Press"
					{
						"bindings"
						{
							"binding"		"mouse_button RIGHT"
						}
						"settings"
						{
							"haptic_intensity"		"2"
						}
					}
				}
			}
		}
		"settings"
		{
			"output_trigger"		"1"
		}
	}
	"group"
	{
		"id"		"5"
		"mode"		"trigger"
		"inputs"
		{
			"edge"
			{
				"activators"
				{
					"Full_Press"
					{
						"bindings"
						{
							"binding"		"mouse_button LEFT"
						}
						"settings"
						{
							"haptic_intensity"		"2"
						}
					}
				}
			}
		}
		"settings"
		{
			"output_trigger"		"2"
		}
	}
	"group"
	{
		"id"		"6"
		"mode"		"mouse_region"
		"inputs"
		{
		}
		"settings"
		{
			"output_joystick"		"3"
			"scale"		"39"
			"position_x"		"84"
			"position_y"		"16"
		}
	}
	"group"
	{
		"id"		"7"
		"mode"		"mouse_region"
		"inputs"
		{
		}
		"settings"
		{
			"output_joystick"		"3"
			"scale"		"10"
			"position_x"		"88"
			"position_y"		"17"
		}
	}
	"group"
	{
		"id"		"9"
		"mode"		"absolute_mouse"
		"inputs"
		{
		}
		"settings"
		{
			"gyro_button"		"8"
		}
	}
	"group"
	{
		"id"		"10"
		"mode"		"touch_menu"
		"inputs"
		{
		}
		"settings"
		{
			"touch_menu_button_count"		"9"
		}
	}
	"group"
	{
		"id"		"11"
		"mode"		"touch_menu"
		"inputs"
		{
			"touch_menu_button_0"
			{
				"activators"
				{
					"Full_Press"
					{
						"bindings"
						{
							"binding"		"mouse_button RIGHT, TL, ghost_045_move_0405.png #232323 #E4E4E4"
							"binding"		"xinput_button JOYSTICK_LEFT, TL, ghost_045_move_0405.png #232323 #E4E4E4"
							"binding"		"mouse_button RIGHT, TL, ghost_045_move_0405.png #232323 #E4E4E4"
							"binding"		"controller_action MOUSE_POSITION 29507 28762 0, TL, ghost_045_move_0405.png #232323 #E4E4E4"
							"binding"		"xinput_button JOYSTICK_LEFT, TL, ghost_045_move_0405.png #232323 #E4E4E4"
						}
						"settings"
						{
							"haptic_intensity"		"2"
						}
					}
				}
			}
			"touch_menu_button_1"
			{
				"activators"
				{
					"Full_Press"
					{
						"bindings"
						{
							"binding"		"mouse_button RIGHT, T, ghost_045_move_0407.png #232323 #E4E4E4"
							"binding"		"mouse_button RIGHT, T, ghost_045_move_0407.png #232323 #E4E4E4"
							"binding"		"controller_action MOUSE_POSITION 30172 28792 0, T, ghost_045_move_0407.png #232323 #E4E4E4"
						}
						"settings"
						{
							"haptic_intensity"		"2"
						}
					}
				}
			}
			"touch_menu_button_2"
			{
				"activators"
				{
					"Full_Press"
					{
						"bindings"
						{
							"binding"		"mouse_button RIGHT, TR, ghost_045_move_0404.png #232323 #E4E4E4"
							"binding"		"mouse_button RIGHT, TR, ghost_045_move_0404.png #232323 #E4E4E4"
							"binding"		"controller_action MOUSE_POSITION 30889 28640 0, TR, ghost_045_move_0404.png #232323 #E4E4E4"
						}
						"settings"
						{
							"haptic_intensity"		"2"
						}
					}
				}
			}
			"touch_menu_button_3"
			{
				"activators"
				{
					"Full_Press"
					{
						"bindings"
						{
							"binding"		"mouse_button RIGHT, ML, ghost_045_move_0401.png #232323 #E4E4E4"
							"binding"		"mouse_button RIGHT, ML, ghost_045_move_0401.png #232323 #E4E4E4"
							"binding"		"controller_action MOUSE_POSITION 29353 30127 0, ML, ghost_045_move_0401.png #232323 #E4E4E4"
						}
						"settings"
						{
							"haptic_intensity"		"2"
						}
					}
				}
			}
			"touch_menu_button_4"
			{
				"activators"
				{
					"Full_Press"
					{
						"bindings"
						{
							"binding"		"mouse_button RIGHT, M, ghost_060_vehicle_0140.png #232323 #E4E4E4"
							"binding"		"mouse_button RIGHT, M, ghost_060_vehicle_0140.png #232323 #E4E4E4"
							"binding"		"controller_action MOUSE_POSITION 30309 30066 0, M, ghost_060_vehicle_0140.png #232323 #E4E4E4"
						}
						"settings"
						{
							"haptic_intensity"		"2"
						}
					}
				}
			}
			"touch_menu_button_5"
			{
				"activators"
				{
					"Full_Press"
					{
						"bindings"
						{
							"binding"		"mouse_button RIGHT, MR, ghost_045_move_0400.png #232323 #E4E4E4"
							"binding"		"mouse_button RIGHT, MR, ghost_045_move_0400.png #232323 #E4E4E4"
							"binding"		"controller_action MOUSE_POSITION 30821 30066 0, MR, ghost_045_move_0400.png #232323 #E4E4E4"
						}
						"settings"
						{
							"haptic_intensity"		"2"
						}
					}
				}
			}
			"touch_menu_button_6"
			{
				"activators"
				{
					"Full_Press"
					{
						"bindings"
						{
							"binding"		"mouse_button RIGHT, BL, ghost_045_move_0406.png #232323 #E4E4E4"
							"binding"		"mouse_button RIGHT, BL, ghost_045_move_0406.png #232323 #E4E4E4"
							"binding"		"controller_action MOUSE_POSITION 29422 31189 0, BL, ghost_045_move_0406.png #232323 #E4E4E4"
						}
						"settings"
						{
							"haptic_intensity"		"2"
						}
					}
				}
			}
			"touch_menu_button_7"
			{
				"activators"
				{
					"Full_Press"
					{
						"bindings"
						{
							"binding"		"mouse_button RIGHT, B, ghost_045_move_0403.png #232323 #E4E4E4"
							"binding"		"mouse_button RIGHT, B, ghost_045_move_0403.png #232323 #E4E4E4"
							"binding"		"controller_action MOUSE_POSITION 30190 31583 0, B, ghost_045_move_0403.png #232323 #E4E4E4"
						}
						"settings"
						{
							"haptic_intensity"		"2"
						}
					}
				}
			}
			"touch_menu_button_8"
			{
				"activators"
				{
					"Full_Press"
					{
						"bindings"
						{
							"binding"		"mouse_button RIGHT, BR, ghost_045_move_0402.png #232323 #E4E4E4"
							"binding"		"mouse_button RIGHT, BR, ghost_045_move_0402.png #232323 #E4E4E4"
							"binding"		"controller_action MOUSE_POSITION 30940 31401 0, BR, ghost_045_move_0402.png #232323 #E4E4E4"
						}
						"settings"
						{
							"haptic_intensity"		"2"
						}
					}
				}
			}
		}
		"settings"
		{
			"touch_menu_button_count"		"9"
			"touch_menu_opacity"		"89"
			"touch_menu_position_x"		"69"
			"touch_menu_position_y"		"97"
			"touch_menu_scale"		"99"
			"touch_menu_show_labels"		"0"
		}
	}
	"group"
	{
		"id"		"12"
		"mode"		"four_buttons"
		"inputs"
		{
			"button_a"
			{
				"activators"
				{
					"Full_Press"
					{
						"bindings"
						{
							"binding"		"mouse_button RIGHT"
							"binding"		"mouse_button RIGHT"
							"binding"		"controller_action MOUSE_POSITION 26077 30794 0"
						}
					}
				}
			}
			"button_B"
			{
				"activators"
				{
					"Full_Press"
					{
						"bindings"
						{
							"binding"		"mouse_button RIGHT"
							"binding"		"mouse_button RIGHT"
							"binding"		"controller_action MOUSE_POSITION 29797 30734 0"
						}
					}
				}
			}
			"button_X"
			{
				"activators"
				{
					"Full_Press"
					{
						"bindings"
						{
							"binding"		"mouse_button RIGHT"
							"binding"		"mouse_button RIGHT"
							"binding"		"controller_action MOUSE_POSITION 26145 25212 0"
						}
					}
				}
			}
			"button_y"
			{
				"activators"
				{
					"Full_Press"
					{
						"bindings"
						{
							"binding"		"controller_action MOUSE_POSITION 29626 25819 0"
							"binding"		"controller_action MOUSE_POSITION 29626 25819 0"
							"binding"		"mouse_button RIGHT"
							"binding"		"controller_action MOUSE_POSITION 29626 25819 0"
							"binding"		"controller_action MOUSE_POSITION 29609 25788 0"
						}
					}
				}
			}
		}
	}
	"group"
	{
		"id"		"13"
		"mode"		"touch_menu"
		"inputs"
		{
			"touch_menu_button_0"
			{
				"activators"
				{
					"Full_Press"
					{
						"bindings"
						{
							"binding"		"key_press F5, Quicksave, ghost_075_utility_020.png #434343 #E4E4E4"
						}
						"settings"
						{
							"haptic_intensity"		"2"
						}
					}
				}
			}
			"touch_menu_button_1"
			{
				"activators"
				{
					"Full_Press"
					{
						"bindings"
						{
							"binding"		"key_press F9, Quickload, ghost_075_utility_010.png #232323 #E4E4E4"
						}
						"settings"
						{
							"haptic_intensity"		"2"
						}
					}
				}
			}
			"touch_menu_button_2"
			{
				"activators"
				{
					"Full_Press"
					{
						"bindings"
						{
							"binding"		"key_press TAB, Map, ghost_050_menu_0030.png #232323 #E4E4E4"
						}
						"settings"
						{
							"haptic_intensity"		"2"
						}
					}
				}
			}
			"touch_menu_button_3"
			{
				"activators"
				{
					"Full_Press"
					{
						"bindings"
						{
							"binding"		"key_press R, Rest, ghost_035_magic_0334.png #232323 #E4E4E4"
						}
						"settings"
						{
							"haptic_intensity"		"2"
						}
					}
				}
			}
		}
		"settings"
		{
			"touch_menu_button_count"		"4"
			"touch_menu_position_x"		"2"
			"touch_menu_position_y"		"97"
		}
	}
	"group"
	{
		"id"		"8"
		"mode"		"switches"
		"inputs"
		{
			"button_escape"
			{
				"activators"
				{
					"Full_Press"
					{
						"bindings"
						{
							"binding"		"key_press ESCAPE, Menu"
						}
					}
				}
			}
			"button_menu"
			{
				"activators"
				{
					"Full_Press"
					{
						"bindings"
						{
							"binding"		"key_press TAB, Map"
						}
					}
				}
			}
			"left_bumper"
			{
				"activators"
				{
					"Full_Press"
					{
						"bindings"
						{
							"binding"		"key_press Q, Move Left"
						}
					}
				}
			}
			"right_bumper"
			{
				"activators"
				{
					"Full_Press"
					{
						"bindings"
						{
							"binding"		"key_press E, Move Right"
						}
					}
				}
			}
			"button_back_right"
			{
				"activators"
				{
					"Full_Press"
					{
						"bindings"
						{
							"binding"		"mode_shift button_diamond 12"
						}
						"settings"
						{
							"interruptable"		"0"
						}
					}
					"Full_Press"
					{
						"bindings"
						{
							"binding"		"mode_shift right_trackpad 13"
						}
						"settings"
						{
							"interruptable"		"0"
						}
					}
				}
			}
			"button_B"
			{
				"activators"
				{
					"Full_Press"
					{
						"bindings"
						{
							"binding"		"mode_shift left_trackpad 11"
						}
						"settings"
						{
							"interruptable"		"0"
						}
					}
				}
			}
		}
	}
	"preset"
	{
		"id"		"0"
		"name"		"default"
		"group_source_bindings"
		{
			"8"		"switch active"
			"0"		"button_diamond active"
			"12"		"button_diamond active modeshift"
			"3"		"right_trackpad active"
			"6"		"right_trackpad inactive modeshift"
			"13"		"right_trackpad active modeshift"
			"2"		"left_trackpad active"
			"10"		"left_trackpad inactive"
			"11"		"left_trackpad active modeshift"
			"1"		"joystick active"
			"7"		"joystick active modeshift"
			"4"		"left_trigger active"
			"5"		"right_trigger active"
			"9"		"gyro active"
		}
	}
	"settings"
	{
	}
}
