mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-11 13:38:35 +00:00
rustfmt
This commit is contained in:
parent
9473c24780
commit
13162408f2
@ -143,10 +143,22 @@ fn handle_key(io: &mut Io, key: &Scancode, pressed: bool) {
|
|||||||
|
|
||||||
/// Handle changes in the key modifier states.
|
/// Handle changes in the key modifier states.
|
||||||
fn handle_key_modifier(io: &mut Io, keymod: &Mod) {
|
fn handle_key_modifier(io: &mut Io, keymod: &Mod) {
|
||||||
io.add_key_event(imgui::Key::ModShift, keymod.intersects(Mod::LSHIFTMOD | Mod::RSHIFTMOD));
|
io.add_key_event(
|
||||||
io.add_key_event(imgui::Key::ModCtrl, keymod.intersects(Mod::LCTRLMOD | Mod::RCTRLMOD));
|
imgui::Key::ModShift,
|
||||||
io.add_key_event(imgui::Key::ModAlt, keymod.intersects(Mod::LALTMOD | Mod::RALTMOD));
|
keymod.intersects(Mod::LSHIFTMOD | Mod::RSHIFTMOD),
|
||||||
io.add_key_event(imgui::Key::ModSuper, keymod.intersects(Mod::LGUIMOD | Mod::RGUIMOD));
|
);
|
||||||
|
io.add_key_event(
|
||||||
|
imgui::Key::ModCtrl,
|
||||||
|
keymod.intersects(Mod::LCTRLMOD | Mod::RCTRLMOD),
|
||||||
|
);
|
||||||
|
io.add_key_event(
|
||||||
|
imgui::Key::ModAlt,
|
||||||
|
keymod.intersects(Mod::LALTMOD | Mod::RALTMOD),
|
||||||
|
);
|
||||||
|
io.add_key_event(
|
||||||
|
imgui::Key::ModSuper,
|
||||||
|
keymod.intersects(Mod::LGUIMOD | Mod::RGUIMOD),
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Map an imgui::MouseCursor to an equivalent sdl2::mouse::SystemCursor.
|
/// Map an imgui::MouseCursor to an equivalent sdl2::mouse::SystemCursor.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user