printed mouse scroll sens

This commit is contained in:
Franklin Blanco 2023-11-29 10:12:18 -08:00
parent 5114114f9a
commit 51019a35a5
2 changed files with 3 additions and 2 deletions

View File

@ -220,7 +220,8 @@ pub fn capture_hand_usage(
if resources.keyboard_input.pressed(resources.player_controls.reticle_adjustment_requisite) {
if let Some(ref mut optic_data) = firearm_state.optic_data {
for mouse_wheel_event in scroll_events.iter() {
let add_to_brightness = mouse_wheel_event.y * resources.time.delta_seconds() * 200.0;
let add_to_brightness = mouse_wheel_event.y * resources.time.delta_seconds() * 2000.0;
// println!("{}, {}", mouse_wheel_event.y, add_to_brightness);
optic_data.reticle_brightness = (optic_data.reticle_brightness + add_to_brightness).clamp(5.0, 500.0); // TODO: Clamp values correctly (introduce variables in optic or firearmstate stating min. and max. values)
}
}

View File

@ -8,7 +8,7 @@ impl Plugin for InspectMenuPlugin {
fn build(&self, app: &mut App) {
app
.add_systems(Startup, setup_inspect_screen)
.add_systems(Update, update_inspect_screen)
//.add_systems(Update, update_inspect_screen)
;
}
}