Skip to content

ImGui binding: weird constants for key bindings #73

Description

@BrunoLevy

Some number keys (first row, not keypad) have weird ids
(reported by @gloook). Use attached Lua code to display them:

-- Lua (keep this comment, it is an indication for editor's 'run' command)

glo_dialog = {}
glo_dialog.visible = true
glo_dialog.name = 'glo_dialog'
glo_dialog.x ,glo_dialog.y = 200,600

function glo_dialog.draw_window()
  imgui.Text("GLO")
  for i=530,600 do
    if imgui.IsKeyDown(i) then
      print(i)
    end
  end
end

graphite_main_window.add_module(glo_dialog)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions