-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- --  FlyWithLua: SaveInitialAssignments.ini version 2.7.4 build 2018-10-04  -- --
-- --  The initial assignments are stored in this file. -- --- -- -- -- -- -- -- --
-- -- 8<  -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

clear_all_axis_assignments()
set_axis_assignment( 0, "pitch", "normal" )
set_axis_assignment( 1, "roll", "normal" )
set_axis_assignment( 2, "yaw", "normal" )
set_axis_assignment( 3, "throttle", "normal" )
set_axis_assignment( 25, "mixture", "normal" )
set_axis_assignment( 26, "prop", "normal" )
set_axis_assignment( 27, "throttle", "normal" )
set_axis_assignment( 28, "pitch", "normal" )
set_axis_assignment( 29, "roll", "normal" )

clear_all_button_assignments()
set_button_assignment( (0*160) + 0, "sim/weapons/fire_any_armed" )
set_button_assignment( (0*160) + 1, "sim/flight_controls/pitch_trimA_up" )
set_button_assignment( (0*160) + 2, "sim/flight_controls/flaps_down" )
set_button_assignment( (0*160) + 3, "sim/flight_controls/pitch_trim_up" )
set_button_assignment( (0*160) + 4, "sim/flight_controls/flaps_up" )
set_button_assignment( (0*160) + 5, "sim/flight_controls/pitch_trim_down" )
set_button_assignment( (0*160) + 6, "sim/flight_controls/brakes_toggle_regular" )
set_button_assignment( (0*160) + 12, "sim/general/hat_switch_up" )
set_button_assignment( (0*160) + 13, "sim/general/hat_switch_up_right" )
set_button_assignment( (0*160) + 14, "sim/general/hat_switch_right" )
set_button_assignment( (0*160) + 15, "sim/general/hat_switch_down_right" )
set_button_assignment( (0*160) + 16, "sim/general/hat_switch_down" )
set_button_assignment( (0*160) + 17, "sim/general/hat_switch_down_left" )
set_button_assignment( (0*160) + 18, "sim/general/hat_switch_left" )
set_button_assignment( (0*160) + 19, "sim/general/hat_switch_up_left" )
set_button_assignment( (1*160) + 2, "sim/flight_controls/aileron_trim_left" )
set_button_assignment( (1*160) + 3, "sim/flight_controls/aileron_trim_right" )
set_button_assignment( (1*160) + 4, "sim/flight_controls/flaps_up" )
set_button_assignment( (1*160) + 5, "sim/flight_controls/flaps_down" )
set_button_assignment( (1*160) + 6, "sim/flight_controls/landing_gear_up" )
set_button_assignment( (1*160) + 7, "sim/flight_controls/landing_gear_down" )
set_button_assignment( (1*160) + 8, "sim/autopilot/servos_off_any" )
set_button_assignment( (1*160) + 10, "sim/flight_controls/pitch_trim_down" )
set_button_assignment( (1*160) + 11, "sim/flight_controls/pitch_trim_up" )
set_button_assignment( (1*160) + 12, "sim/general/hat_switch_up" )
set_button_assignment( (1*160) + 13, "sim/general/hat_switch_up_right" )
set_button_assignment( (1*160) + 14, "sim/general/hat_switch_right" )
set_button_assignment( (1*160) + 15, "sim/general/hat_switch_down_right" )
set_button_assignment( (1*160) + 16, "sim/general/hat_switch_down" )
set_button_assignment( (1*160) + 17, "sim/general/hat_switch_down_left" )
set_button_assignment( (1*160) + 18, "sim/general/hat_switch_left" )

-- setting nullzone, sensitivity and augment
set( "sim/joystick/joystick_pitch_nullzone",      0.000 )
set( "sim/joystick/joystick_roll_nullzone",       0.000 )
set( "sim/joystick/joystick_heading_nullzone",    0.000 )
set( "sim/joystick/joystick_pitch_sensitivity",   0.500 )
set( "sim/joystick/joystick_roll_sensitivity",    0.500 )
set( "sim/joystick/joystick_heading_sensitivity", 0.500 )
set( "sim/joystick/joystick_pitch_augment",       0.500 )
set( "sim/joystick/joystick_roll_augment",        0.500 )
set( "sim/joystick/joystick_heading_augment",     0.500 )

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- >8 -- --

-- PLANE_ICAO == "C172R"
-- PLANE_TAILNUMBER == "ZV-GFS"
-- AIRCRAFT_FILENAME == "Cessna_172SP.acf"
