mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-11 13:38:35 +00:00
add support for focus event
This commit is contained in:
parent
2abba18c08
commit
a09b72049f
@ -458,6 +458,12 @@ impl Io {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn add_focus_event(&mut self, focused: bool) {
|
||||||
|
unsafe {
|
||||||
|
sys::ImGuiIO_AddFocusEvent(self.raw_mut(), focused);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
pub fn add_key_analog_event(&mut self, key: Key, down: bool, value: f32) {
|
pub fn add_key_analog_event(&mut self, key: Key, down: bool, value: f32) {
|
||||||
unsafe {
|
unsafe {
|
||||||
sys::ImGuiIO_AddKeyAnalogEvent(self.raw_mut(), key as u32, down, value);
|
sys::ImGuiIO_AddKeyAnalogEvent(self.raw_mut(), key as u32, down, value);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user