Merge pull request #131 from malikolivier/imgui-add-mouse-wheel

[ImGui] Add helper function to get mouse wheel delta
This commit is contained in:
Joonas Javanainen 2018-05-30 08:03:56 +03:00 committed by GitHub
commit 37d556ce3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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) {