MCPcopy Create free account
hub / github.com/TanTanDev/first_voxel_engine / process_mouse

Method process_mouse

src/camera_controller.rs:78–81  ·  view source on GitHub ↗
(&mut self, mouse_dx: f64, mouse_dy: f64)

Source from the content-addressed store, hash-verified

76 }
77
78 pub fn process_mouse(&mut self, mouse_dx: f64, mouse_dy: f64) {
79 self.rotate_horizontal = mouse_dx as f32;
80 self.rotate_vertical = mouse_dy as f32;
81 }
82
83 pub fn process_scroll(&mut self, delta: &MouseScrollDelta) {
84 self.scroll = -match delta {

Callers 1

inputMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected