"controller_mappings" { "version" "3" "title" "FlameX360" "description" "Original controls for Mafia: The City of Lost Heaven based on Xbox 360 controls for Mafia II. Use bumpers to switch between on foot mode and in vehicle." "creator" "76561198015945093" "controller_type" "controller_xbox360" "actions" { "Default" { "title" "Default" "legacy_set" "1" } "Preset_1000001" { "title" "In Vehicle" "legacy_set" "1" } } "group" { "id" "0" "mode" "four_buttons" "inputs" { "button_a" { "activators" { "Full_Press" { "bindings" { "binding" "key_press E, Jump" } } "Full_Press" { "bindings" { "binding" "key_press SPACE" } "settings" { "delay_start" "24" } } } } "button_B" { "activators" { "Full_Press" { "bindings" { "binding" "key_press RIGHT_CONTROL, Crouch" } "settings" { "toggle" "1" } } } } "button_X" { "activators" { "Full_Press" { "bindings" { "binding" "mouse_button RIGHT, Action" } } } } "button_y" { "activators" { "Full_Press" { "bindings" { "binding" "key_press H, Hide Weapon" } } "Long_Press" { "bindings" { "binding" "key_press BACKSPACE, Throw Weapon" } } } } } } "group" { "id" "1" "mode" "dpad" "inputs" { "dpad_north" { "activators" { "Full_Press" { "bindings" { "binding" "key_press UP_ARROW" } "settings" { "haptic_intensity" "1" } } } } "dpad_south" { "activators" { "Full_Press" { "bindings" { "binding" "key_press DOWN_ARROW" } "settings" { "haptic_intensity" "1" } } } } "dpad_east" { "activators" { "Full_Press" { "bindings" { "binding" "key_press RIGHT_ARROW" } "settings" { "haptic_intensity" "1" } } } } "dpad_west" { "activators" { "Full_Press" { "bindings" { "binding" "key_press LEFT_ARROW" } "settings" { "haptic_intensity" "1" } } } } "edge" { "activators" { "Full_Press" { "bindings" { "binding" "key_press LEFT_SHIFT" } "settings" { "haptic_intensity" "1" } } } } "click" { "activators" { "Full_Press" { "bindings" { "binding" "key_press RIGHT_CONTROL, Crouch" } "settings" { "haptic_intensity" "1" } } } } } "settings" { "requires_click" "0" "edge_binding_invert" "1" } } "group" { "id" "2" "mode" "dpad" "inputs" { "dpad_north" { "activators" { "Full_Press" { "bindings" { "binding" "key_press I, Inventory" } "settings" { "haptic_intensity" "1" } } } } "dpad_south" { "activators" { "Full_Press" { "bindings" { "binding" "key_press H, Hide Weapon" } "settings" { "haptic_intensity" "1" } } } } "dpad_east" { "activators" { "Full_Press" { "bindings" { "binding" "mouse_wheel SCROLL_UP, Next Weapon" } "settings" { "haptic_intensity" "1" } } } } "dpad_west" { "activators" { "Full_Press" { "bindings" { "binding" "mouse_wheel SCROLL_DOWN, Previous Weapon" } "settings" { "haptic_intensity" "1" } } } } } } "group" { "id" "3" "mode" "absolute_mouse" "inputs" { } "settings" { "sensitivity" "48" } } "group" { "id" "4" "mode" "trigger" "inputs" { "click" { "activators" { "Full_Press" { "bindings" { "binding" "mouse_button RIGHT, Action" } "settings" { "haptic_intensity" "2" } } } } } "settings" { "output_trigger" "1" } } "group" { "id" "5" "mode" "trigger" "inputs" { "click" { "activators" { "Full_Press" { "bindings" { "binding" "mouse_button LEFT, Left Mouse" } "settings" { "haptic_intensity" "2" } } } } } "settings" { "output_trigger" "2" } } "group" { "id" "7" "mode" "absolute_mouse" "inputs" { } "settings" { "sensitivity" "14" } } "group" { "id" "8" "mode" "four_buttons" "inputs" { "button_a" { "activators" { "Full_Press" { "bindings" { "binding" "key_press F5, Speed Limiter" } } "Full_Press" { "bindings" { "binding" "key_press RETURN" } "settings" { "delay_start" "24" } } } } "button_B" { "activators" { "Full_Press" { "bindings" { "binding" "key_press SPACE, Handbrake" } } } } "button_X" { "activators" { "Full_Press" { "bindings" { "binding" "key_press K, Horn" } } } } "button_y" { "activators" { "Full_Press" { "bindings" { "binding" "mouse_button LEFT, Shoot" } } "Double_Press" { "bindings" { "binding" "key_press I, Inventory" } } } } } } "group" { "id" "9" "mode" "trigger" "inputs" { "edge" { "activators" { "Full_Press" { "bindings" { "binding" "key_press DOWN_ARROW, Brake/Reverse" } "settings" { "haptic_intensity" "2" } } } } } } "group" { "id" "10" "mode" "trigger" "inputs" { "edge" { "activators" { "Full_Press" { "bindings" { "binding" "key_press UP_ARROW, Accelerate" } "settings" { "haptic_intensity" "2" } } } } } } "group" { "id" "12" "mode" "dpad" "inputs" { "dpad_east" { "activators" { "Full_Press" { "bindings" { "binding" "key_press RIGHT_ARROW" } "settings" { "haptic_intensity" "1" } } } } "dpad_west" { "activators" { "Full_Press" { "bindings" { "binding" "key_press LEFT_ARROW" } "settings" { "haptic_intensity" "1" } } } } "click" { "activators" { "Full_Press" { "bindings" { "binding" "mouse_button LEFT, Shoot" } "settings" { "haptic_intensity" "1" } } "Long_Press" { "bindings" { "binding" "key_press I, Inventory" } "settings" { "haptic_intensity" "1" } } "Double_Press" { "bindings" { "binding" "mouse_button RIGHT" } "settings" { "haptic_intensity" "1" } } } } } } "group" { "id" "13" "mode" "absolute_mouse" "inputs" { "click" { "activators" { "Full_Press" { "bindings" { "binding" "key_press C, Change View" } "settings" { "haptic_intensity" "1" } } } } } } "group" { "id" "14" "mode" "dpad" "inputs" { "dpad_north" { "activators" { "Full_Press" { "bindings" { "binding" "key_press A, Gear Up" } "settings" { "haptic_intensity" "1" } } } } "dpad_south" { "activators" { "Full_Press" { "bindings" { "binding" "key_press Z, Gear Down" } "settings" { "haptic_intensity" "1" } } } } "dpad_east" { "activators" { "Full_Press" { "bindings" { "binding" "key_press KEYPAD_0, Respawn" } "settings" { "haptic_intensity" "1" } } } } "dpad_west" { "activators" { "Full_Press" { "bindings" { "binding" "key_press M, Gearbox Type" } "settings" { "haptic_intensity" "1" } } } } } } "group" { "id" "15" "mode" "joystick_mouse" "inputs" { } "settings" { "output_joystick" "2" "sensitivity" "48" } } "group" { "id" "16" "mode" "joystick_mouse" "inputs" { "click" { "activators" { "Full_Press" { "bindings" { "binding" "key_press C, Change View" } "settings" { "haptic_intensity" "1" } } } } } "settings" { "output_joystick" "2" } } "group" { "id" "6" "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" } "settings" { "toggle" "1" } } "Long_Press" { "bindings" { "binding" "key_press F1, Mission Log" } "settings" { "long_press_time" "224" } } } } "left_bumper" { "activators" { "Full_Press" { "bindings" { "binding" "controller_action CHANGE_PRESET 2 1 1, Vehicle Mode" } } } } "right_bumper" { "activators" { "Full_Press" { "bindings" { "binding" "key_press L, Reload" } } } } } } "group" { "id" "11" "mode" "switches" "inputs" { "button_escape" { "activators" { "Full_Press" { "bindings" { "binding" "key_press ESCAPE, Menu" } } } } "button_menu" { "activators" { "Full_Press" { "bindings" { "binding" "key_press TAB" } "settings" { "toggle" "1" } } "Long_Press" { "bindings" { "binding" "key_press F1, Mission Log" } "settings" { "long_press_time" "224" } } } } "left_bumper" { "activators" { "Full_Press" { "bindings" { "binding" "key_press COMMA, Look Behind" "binding" "key_press PERIOD, Look Behind" } } } } "right_bumper" { "activators" { "Full_Press" { "bindings" { "binding" "controller_action CHANGE_PRESET 1 1 1" } } } } "button_back_left" { "activators" { "Full_Press" { "bindings" { "binding" "key_press COMMA, Look Left" } } } } "button_back_right" { "activators" { "Full_Press" { "bindings" { "binding" "key_press PERIOD, Look Right" } } } } } } "preset" { "id" "0" "name" "Default" "group_source_bindings" { "6" "switch active" "0" "button_diamond active" "1" "joystick active" "3" "right_trackpad active" "4" "left_trigger active" "5" "right_trigger active" "7" "gyro active" "2" "dpad active" "15" "right_joystick active" } } "preset" { "id" "1" "name" "Preset_1000001" "group_source_bindings" { "11" "switch active" "8" "button_diamond active" "12" "joystick active" "13" "right_trackpad active" "9" "left_trigger active" "10" "right_trigger active" "14" "dpad active" "16" "right_joystick active" } } "settings" { "left_trackpad_mode" "0" "right_trackpad_mode" "0" } }