[ImGui] Add helper function to get wheel delta

This commit is contained in:
Malik Olivier Boussejra 2018-05-29 13:36:18 +09:00
parent e374eb9f55
commit c2fd3561cb

View File

@ -219,6 +219,11 @@ impl ImGui {
let io = self.io_mut();
io.mouse_wheel = value;
}
/// Get mouse wheel delta
pub fn mouse_wheel(&self) -> f32 {
let io = self.io();
io.mouse_wheel
}
/// Set to `true` to have ImGui draw the cursor in software.
/// If `false`, the OS cursor is used (default to `false`).
pub fn set_mouse_draw_cursor(&mut self, value: bool) {