mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-10 21:18:36 +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) {
|
||||
unsafe {
|
||||
sys::ImGuiIO_AddKeyAnalogEvent(self.raw_mut(), key as u32, down, value);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user