diff --git a/src/config.rs b/src/config.rs index 18f533b..6666839 100644 --- a/src/config.rs +++ b/src/config.rs @@ -4,7 +4,9 @@ use gilrs::ev::Button; /// use serde::{Deserialize, Serialize}; #[derive(Deserialize, Serialize)] -pub struct Configs {} +pub struct Configs { + input: InputConfigs, +} #[derive(Deserialize, Serialize)] pub struct DisplayConfigs { @@ -18,34 +20,34 @@ pub struct InputConfigs { keyboard_single: KeyboardConfig, //Keyboard_duo_1: KeyboardConfig, // keyboard_duo_2: KeyboardConfig - Controller1: Option, - Controller2: Option, - Controller3: Option, - Controller4: Option, - Controller5: Option, + pub Controller1: Option, + pub Controller2: Option, + pub Controller3: Option, + pub Controller4: Option, + pub Controller5: Option, } #[derive(Deserialize, Serialize, Debug)] pub struct ControllerConfig { // directionals - Up: Button, - Down: Button, - Right: Button, - Left: Button, + pub Up: Button, + pub Down: Button, + pub Right: Button, + pub Left: Button, // the punches - LightPunch: Button, - MediumPunch: Button, - HeavyPunch: Button, + pub LightPunch: Button, + pub MediumPunch: Button, + pub HeavyPunch: Button, // the kicks - LightKick: Button, - MediumKick: Button, - HeavyKick: Button, + pub LightKick: Button, + pub MediumKick: Button, + pub HeavyKick: Button, // Macros - PunchMacro: Option