Closed bgribble closed 3 months ago
Hello,
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?