[ImGui] Add helper function "is_mouse_released"
@@ -274,6 +274,12 @@ impl ImGui {
sys::igIsMouseDoubleClicked(button as c_int)
}
}
+ /// Returns `true` if the `button` provided as argument was released
+ pub fn is_mouse_released(&self, button: ImMouseButton) -> bool {
+ unsafe {
+ sys::igIsMouseReleased(button as c_int)
+ }
+ }
pub fn key_ctrl(&self) -> bool {
let io = self.io();
io.key_ctrl
