You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm moving an app that was originally written in Gtk/Clutter in Python to Dear ImGui. I started with pyimgui but I really need to use implot and a nodes-and-links package such as imnodes or imgui_node_editor so imgui_bundle seems just right.
My app does a lot of keyboard handling for custom mappings of all kinds of key combos so I am using this basic approach (pulled from a suggestion by ocornut) to find out all the keys that are down:
def keys_down():
keys = []
for index in range(512, int(imgui.Key.count)):
key_down = imgui.is_key_down(imgui.Key(index))
if key_down:
keys.append(imgui.Key(index))
return set(keys)
This mostly works, but only give me the keys whose scancodes are pressed down -- i.e. I have shift lock and control swapped at the window manager level, and when I press the key that's marked "Caps lock" on my keyboard I get imgui.Key.caps_lock even though that's actually the control key for me.
Is there a layer of representation I can access that has the keys as other windows see them, rather than just the scan codes?
The text was updated successfully, but these errors were encountered:
This issue is more related to Dear ImGui in itself. May be you should have a look at this issue which summarizes recent changes in the keyboard api, as well as the other issues related to keyboard mapping within ImGui.
Hi, I'm moving an app that was originally written in Gtk/Clutter in Python to Dear ImGui. I started with
pyimgui
but I really need to useimplot
and a nodes-and-links package such asimnodes
orimgui_node_editor
soimgui_bundle
seems just right.My app does a lot of keyboard handling for custom mappings of all kinds of key combos so I am using this basic approach (pulled from a suggestion by ocornut) to find out all the keys that are down:
This mostly works, but only give me the keys whose scancodes are pressed down -- i.e. I have shift lock and control swapped at the window manager level, and when I press the key that's marked "Caps lock" on my keyboard I get
imgui.Key.caps_lock
even though that's actually the control key for me.Is there a layer of representation I can access that has the keys as other windows see them, rather than just the scan codes?
The text was updated successfully, but these errors were encountered: