mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-11 05:28:35 +00:00
fixed incorrect mod handling
This commit is contained in:
parent
2707fd84b7
commit
763b34eaa2
@ -157,10 +157,11 @@ pub enum Key {
|
||||
MouseX2 = sys::ImGuiKey_MouseX2,
|
||||
MouseWheelX = sys::ImGuiKey_MouseWheelX,
|
||||
MouseWheelY = sys::ImGuiKey_MouseWheelY,
|
||||
ReservedForModCtrl = sys::ImGuiKey_ReservedForModCtrl,
|
||||
ReservedForModShift = sys::ImGuiKey_ReservedForModShift,
|
||||
ReservedForModAlt = sys::ImGuiKey_ReservedForModAlt,
|
||||
ReservedForModSuper = sys::ImGuiKey_ReservedForModSuper,
|
||||
|
||||
ModCtrl = sys::ImGuiMod_Ctrl,
|
||||
ModShift = sys::ImGuiMod_Shift,
|
||||
ModAlt = sys::ImGuiMod_Alt,
|
||||
ModSuper = sys::ImGuiMod_Super,
|
||||
}
|
||||
|
||||
impl Key {
|
||||
@ -316,10 +317,10 @@ impl Key {
|
||||
Key::MouseX2,
|
||||
Key::MouseWheelX,
|
||||
Key::MouseWheelY,
|
||||
Key::ReservedForModCtrl,
|
||||
Key::ReservedForModShift,
|
||||
Key::ReservedForModAlt,
|
||||
Key::ReservedForModSuper,
|
||||
Key::ModCtrl,
|
||||
Key::ModShift,
|
||||
Key::ModAlt,
|
||||
Key::ModSuper,
|
||||
];
|
||||
/// Total count of `Key` variants
|
||||
pub const COUNT: usize = sys::ImGuiKey_NamedKey_COUNT as usize;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user