MCPcopy Create free account
hub / github.com/CleanCut/rusty_engine / wheel

Method wheel

src/mouse.rs:147–149  ·  view source on GitHub ↗

Returns a [`MouseWheelState], which is a simplified version of cumulative mouse wheel events. When dealing with mouse wheel movement, you _usually_ don't want this...you want [`Engine::mouse_wheel_events`](crate::prelude::Engine::mouse_wheel_events) instead.

(&self)

Source from the content-addressed store, hash-verified

145 /// events. When dealing with mouse wheel movement, you _usually_ don't want this...you want
146 /// [`Engine::mouse_wheel_events`](crate::prelude::Engine::mouse_wheel_events) instead.
147 pub fn wheel(&self) -> MouseWheelState {
148 self.wheel
149 }
150 /// Returns true if the mouse button was pressed
151 pub fn pressed(&self, mouse_button: MouseButton) -> bool {
152 self.pressed.contains(&mouse_button)

Callers 1

logicFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected