made them public
parent
70d598bf13
commit
fe95327ca8
|
@ -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<ControllerConfig>,
|
||||
Controller2: Option<ControllerConfig>,
|
||||
Controller3: Option<ControllerConfig>,
|
||||
Controller4: Option<ControllerConfig>,
|
||||
Controller5: Option<ControllerConfig>,
|
||||
pub Controller1: Option<ControllerConfig>,
|
||||
pub Controller2: Option<ControllerConfig>,
|
||||
pub Controller3: Option<ControllerConfig>,
|
||||
pub Controller4: Option<ControllerConfig>,
|
||||
pub Controller5: Option<ControllerConfig>,
|
||||
}
|
||||
|
||||
#[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<Button>,
|
||||
KickMacro: Option<Button>,
|
||||
pub PunchMacro: Option<Button>,
|
||||
pub KickMacro: Option<Button>,
|
||||
}
|
||||
|
||||
impl Default for ControllerConfig {
|
||||
|
@ -72,24 +74,24 @@ impl Default for ControllerConfig {
|
|||
#[derive(Deserialize, Serialize, Debug)]
|
||||
pub struct KeyboardConfig {
|
||||
// directionals
|
||||
Up: ScanCodes,
|
||||
Down: ScanCodes,
|
||||
Right: ScanCodes,
|
||||
Left: ScanCodes,
|
||||
pub Up: ScanCodes,
|
||||
pub Down: ScanCodes,
|
||||
pub Right: ScanCodes,
|
||||
pub Left: ScanCodes,
|
||||
|
||||
// the punches
|
||||
LightPunch: ScanCodes,
|
||||
MediumPunch: ScanCodes,
|
||||
HeavyPunch: ScanCodes,
|
||||
pub LightPunch: ScanCodes,
|
||||
pub MediumPunch: ScanCodes,
|
||||
pub HeavyPunch: ScanCodes,
|
||||
|
||||
// the kicks
|
||||
LightKick: ScanCodes,
|
||||
MediumKick: ScanCodes,
|
||||
HeavyKick: ScanCodes,
|
||||
pub LightKick: ScanCodes,
|
||||
pub MediumKick: ScanCodes,
|
||||
pub HeavyKick: ScanCodes,
|
||||
|
||||
// Macros
|
||||
PunchMacro: Option<ScanCodes>,
|
||||
KickMacro: Option<ScanCodes>,
|
||||
pub PunchMacro: Option<ScanCodes>,
|
||||
pub KickMacro: Option<ScanCodes>,
|
||||
}
|
||||
|
||||
impl Default for KeyboardConfig {
|
||||
|
|
Loading…
Reference in New Issue