Skip to content

Commit

Permalink
feat(config): add some more configs
Browse files Browse the repository at this point in the history
Signed-off-by: HaoboGu <[email protected]>
  • Loading branch information
HaoboGu committed Feb 6, 2024
1 parent 982619f commit 91c9401
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions rmk/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,38 @@ pub struct KeyboardAdvancedConfig<'a> {
pub usb_config: KeyboardUsbConfig<'a>,
}

/// Configuration for debouncing
pub struct DebounceConfig {
pub debounce_time: u32
}

/// Configurations for mouse functionalities
#[derive(Debug)]
pub struct MouseConfig {
pub mouse_key_interval: u32,
pub mouse_wheel_interval: u32,
pub mouse_time_to_max: u32,
}

impl Default for MouseConfig {
fn default() -> Self {
Self {
mouse_key_interval: 20,
mouse_wheel_interval: 80,
mouse_time_to_max: 80,
}
}
}

/// Configurations for RGB light
pub struct RGBLightConfig {
pub enabled: bool,
pub rgb_led_num: u32,
pub rgb_hue_step: u32,
pub rgb_val_step: u32,
pub rgb_sat_step: u32,
}

/// Configurations for usb
#[derive(Debug)]
pub struct KeyboardUsbConfig<'a> {
Expand Down

0 comments on commit 91c9401

Please sign in to comment.