"controller_mappings" { "version" "3" "title" "Mafia 1 - Controller Keybinds [v0.1]" "description" "Based on console controls :) Hold Triangle/Y button to switch between \"on foot\" and \"in the car\" action sets." "creator" "76561198377520398" "controller_type" "controller_ps4" "Timestamp" "1740218592" "actions" { "Default" { "title" "On Foot" "legacy_set" "1" } "Preset_1000001" { "title" "In the Car" "legacy_set" "1" } } "action_layers" { } "group" { "id" "0" "mode" "four_buttons" "inputs" { "button_a" { "activators" { "Full_Press" { "bindings" { "binding" "key_press RETURN, Select Item" } } } } "button_b" { "activators" { "Full_Press" { "bindings" { "binding" "key_press L, Reload Weapon" } } } } "button_x" { "activators" { "Full_Press" { "bindings" { "binding" "key_press E, Jump" } } } } "button_y" { "activators" { "Full_Press" { "bindings" { "binding" "mouse_button RIGHT, Action/Use" } } "Long_Press" { "bindings" { "binding" "mouse_button RIGHT, Enter Car" } } "Long_Press" { "bindings" { "binding" "controller_action CHANGE_PRESET 2 1 1" } "settings" { "delay_start" "24" } } } } } } "group" { "id" "1" "mode" "dpad" "inputs" { "dpad_north" { "activators" { "Full_Press" { "bindings" { "binding" "key_press UP_ARROW, Forwards" } } } } "dpad_south" { "activators" { "Full_Press" { "bindings" { "binding" "key_press DOWN_ARROW, Backwards" } } } } "dpad_east" { "activators" { "Full_Press" { "bindings" { "binding" "key_press RIGHT_ARROW, Right" "binding" "key_press RIGHT_ARROW, Right" } } } } "dpad_west" { "activators" { "Full_Press" { "bindings" { "binding" "key_press LEFT_ARROW, Left" "binding" "key_press LEFT_ARROW, Left" } } } } "edge" { "activators" { "Full_Press" { "bindings" { "binding" "key_press LEFT_SHIFT, Run" } } } } "click" { "activators" { "Full_Press" { "bindings" { "binding" "key_press Q, Toggle Crouch" } "settings" { "toggle" "1" } } } } } "settings" { "requires_click" "0" "edge_binding_radius" "24999" "edge_binding_invert" "1" } } "group" { "id" "2" "mode" "dpad" "inputs" { "dpad_north" { "activators" { "Full_Press" { "bindings" { "binding" "key_press H, Holster Weapon" } } } } "dpad_south" { "activators" { "Full_Press" { "bindings" { "binding" "key_press BACKSPACE, Drop Weapon" } } } } "dpad_east" { "activators" { "Full_Press" { "bindings" { "binding" "mouse_wheel SCROLL_UP, Next Weapon" } } } } "dpad_west" { "activators" { "Full_Press" { "bindings" { "binding" "mouse_wheel SCROLL_DOWN, Previous Weapon" } } } } } "settings" { "layout" "0" } } "group" { "id" "3" "mode" "absolute_mouse" "inputs" { "click" { "activators" { "Full_Press" { "bindings" { "binding" "mouse_button RIGHT, Action/Use" } } } } } "settings" { "sensitivity" "24" "doubetap_max_duration" "324" } } "group" { "id" "4" "mode" "trigger" "inputs" { "edge" { "activators" { "Full_Press" { "bindings" { "binding" "key_press R, Sniper Mode [SET IN CONTROLS!]" } } } } } "settings" { "output_trigger" "1" } } "group" { "id" "5" "mode" "trigger" "inputs" { "edge" { "activators" { "Full_Press" { "bindings" { "binding" "mouse_button LEFT, Fire Weapon" } "settings" { "haptic_intensity" "2" } } } } } "settings" { "deadzone_outer_radius" "31999" "deadzone_inner_radius" "999" } } "group" { "id" "7" "mode" "joystick_move" "inputs" { } } "group" { "id" "8" "mode" "absolute_mouse" "inputs" { } "settings" { "sensitivity" "14" "gyro_button" "8" } } "group" { "id" "9" "mode" "scrollwheel" "inputs" { } } "group" { "id" "10" "mode" "four_buttons" "inputs" { "button_a" { "activators" { "Full_Press" { "bindings" { "binding" "key_press RETURN, Select Item" } } } } "button_b" { "activators" { "Full_Press" { "bindings" { "binding" "key_press F5, Speed Limiter" } } } } "button_x" { "activators" { "Full_Press" { "bindings" { "binding" "key_press SPACE, Handbrake" } } } } "button_y" { "activators" { "Full_Press" { "bindings" { "binding" "mouse_button RIGHT, Action/Use" } } "Long_Press" { "bindings" { "binding" "mouse_button RIGHT, Exit Car" } } "Long_Press" { "bindings" { "binding" "controller_action CHANGE_PRESET 1 1 1" } "settings" { "delay_start" "24" } } } } } } "group" { "id" "11" "mode" "trigger" "inputs" { "edge" { "activators" { "Full_Press" { "bindings" { "binding" "key_press DOWN_ARROW, Brake/Reverse" } } } } } } "group" { "id" "12" "mode" "trigger" "inputs" { "edge" { "activators" { "Full_Press" { "bindings" { "binding" "key_press UP_ARROW, Accelerate" } } } } } } "group" { "id" "14" "mode" "dpad" "inputs" { "dpad_north" { "activators" { "Full_Press" { "bindings" { "binding" "key_press H, Holster Weapon" } } } } "dpad_south" { "activators" { "Full_Press" { "bindings" { "binding" "key_press DOWN_ARROW, Navigate Down" } } "Long_Press" { "bindings" { "binding" "key_press M, Manual Gear Box" } } } } "dpad_east" { "activators" { "Full_Press" { "bindings" { "binding" "key_press A, Gear Up" } } "Long_Press" { "bindings" { "binding" "mouse_wheel SCROLL_UP, Next Weapon" } } } } "dpad_west" { "activators" { "Full_Press" { "bindings" { "binding" "key_press Z, Gear Down" } } "Long_Press" { "bindings" { "binding" "mouse_wheel SCROLL_DOWN, Previous Weapon" } } } } } "settings" { "layout" "0" } } "group" { "id" "15" "mode" "dpad" "inputs" { "dpad_east" { "activators" { "Full_Press" { "bindings" { "binding" "key_press RIGHT_ARROW, Turn Right" } } } } "dpad_west" { "activators" { "Full_Press" { "bindings" { "binding" "key_press LEFT_ARROW, Turn Left" } } } } "click" { "activators" { "Full_Press" { "bindings" { "binding" "key_press K, Horn" } } } } } "settings" { "analog_emulation_period" "29" } } "group" { "id" "16" "mode" "absolute_mouse" "inputs" { } } "group" { "id" "17" "mode" "absolute_mouse" "inputs" { } "settings" { "sensitivity" "29" "gyro_button" "8" } } "group" { "id" "18" "mode" "joystick_mouse" "inputs" { "click" { "activators" { "Full_Press" { "bindings" { "binding" "key_press K, Whistle" } } } } } "settings" { "curve_exponent" "4" "output_joystick" "2" "sensitivity" "108" "sensitivity_vert_scale" "49" } } "group" { "id" "19" "mode" "joystick_mouse" "inputs" { "click" { "activators" { "Full_Press" { "bindings" { "binding" "key_press C, Camera Mode" } } } } } "settings" { "curve_exponent" "4" "output_joystick" "2" "sensitivity" "108" "sensitivity_vert_scale" "49" } } "group" { "id" "20" "mode" "single_button" "inputs" { "click" { "activators" { "Full_Press" { "bindings" { "binding" "key_press K, Whistle" } } } } } } "group" { "id" "21" "mode" "single_button" "inputs" { "click" { "activators" { "Long_Press" { "bindings" { "binding" "controller_action CHANGE_PRESET 32766 1 1" } } } } } } "group" { "id" "22" "mode" "single_button" "inputs" { "click" { "activators" { "Long_Press" { "bindings" { "binding" "controller_action CHANGE_PRESET 32766 1 1" } } } } } } "group" { "id" "23" "mode" "scrollwheel" "inputs" { "scroll_clockwise" { "activators" { "Full_Press" { "bindings" { "binding" "key_press A, Gear Up" } "settings" { "haptic_intensity" "2" } } } } "scroll_counterclockwise" { "activators" { "Full_Press" { "bindings" { "binding" "key_press Z, Gear Down" } "settings" { "haptic_intensity" "2" } } } } } "settings" { "scroll_type" "2" "scroll_invert" "1" "scroll_friction" "0" } } "group" { "id" "24" "mode" "single_button" "inputs" { "click" { "activators" { "Full_Press" { "bindings" { "binding" "key_press K, Horn" } } } } } } "group" { "id" "25" "mode" "joystick_move" "inputs" { } } "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, City Map" } "settings" { "toggle" "1" } } "Long_Press" { "bindings" { "binding" "key_press F1, Objectives" } "settings" { "long_press_time" "449" } } } } "left_bumper" { "activators" { "Full_Press" { "bindings" { "binding" "key_press I, Inventory" } } } } "right_bumper" { "activators" { "Full_Press" { "bindings" { "binding" "key_press Q, Crouch" } } } } "button_back_right" { "activators" { "Full_Press" { "bindings" { "binding" "controller_action CHANGE_PRESET 2 1 1, Driving Mode" } } } } } } "group" { "id" "13" "mode" "switches" "inputs" { "button_escape" { "activators" { "Full_Press" { "bindings" { "binding" "key_press ESCAPE, Menu" } } } } "button_menu" { "activators" { "Full_Press" { "bindings" { "binding" "key_press I, Inventory" } } "Long_Press" { "bindings" { "binding" "key_press F1, Objectives" } "settings" { "long_press_time" "449" } } } } "left_bumper" { "activators" { "Full_Press" { "bindings" { "binding" "key_press TAB, City Map" } "settings" { "toggle" "1" } } } } "right_bumper" { "activators" { "Full_Press" { "bindings" { "binding" "mouse_button LEFT, Fire Weapon" } } } } "button_back_left" { "activators" { "Full_Press" { "bindings" { "binding" "mouse_button LEFT, Fire Weapon" } } } } "button_back_right" { "activators" { "Full_Press" { "bindings" { "binding" "controller_action CHANGE_PRESET 1 1 1, Walking Mode" } } } } } } "preset" { "id" "0" "name" "Default" "group_source_bindings" { "6" "switch active" "0" "button_diamond active" "1" "joystick active" "7" "joystick inactive" "9" "dpad inactive" "2" "dpad active" "20" "left_trackpad active" "3" "right_trackpad active" "4" "left_trigger active" "5" "right_trigger active" "8" "gyro active" "18" "right_joystick active" "21" "center_trackpad inactive" } } "preset" { "id" "1" "name" "Preset_1000001" "group_source_bindings" { "13" "switch active" "10" "button_diamond active" "15" "joystick active" "25" "joystick inactive" "14" "dpad active" "24" "left_trackpad active" "16" "right_trackpad inactive" "23" "right_trackpad active" "11" "left_trigger active" "12" "right_trigger active" "17" "gyro inactive" "19" "right_joystick active" "22" "center_trackpad inactive" } } "settings" { "left_trackpad_mode" "0" "right_trackpad_mode" "0" "action_set_trigger_cursor_show" "0" "action_set_trigger_cursor_hide" "0" } }