mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-13 06:28:36 +00:00
[ImGui] Add helper function "is_mouse_double_clicked"
This commit is contained in:
parent
37d556ce3b
commit
b62cd2eca8
@ -268,6 +268,12 @@ impl ImGui {
|
||||
sys::igIsMouseClicked(button as c_int, false)
|
||||
}
|
||||
}
|
||||
/// Returns `true` if the `button` provided as argument is being double-clicked.
|
||||
pub fn is_mouse_double_clicked(&self, button: ImMouseButton) -> bool {
|
||||
unsafe {
|
||||
sys::igIsMouseDoubleClicked(button as c_int)
|
||||
}
|
||||
}
|
||||
pub fn key_ctrl(&self) -> bool {
|
||||
let io = self.io();
|
||||
io.key_ctrl
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user