Skip to content

Help with keyboard handling and catching some keys #3724

@friol

Description

@friol

Version/Branch of Dear ImGui:

Version: 1.79
Branch: master

Back-end/Renderer/Compiler/OS

Back-ends: iimgui_impl_glfw.cpp
Compiler: Visual C++ 2019
Operating System: Windows 10

My Issue/Question:

Hello,
I have a couple of questions; I've searched the documentation/examples, but couldn't find the answer.

1) how do you handle pressing some "special" keys like F1 (function keys) or "+" (plus key)? They seem to be missing from io.KeyMap[ImGuiKey_*]

2) which is the proper way of handling keyboard on windows? Currently I'm polling the keyboard with ImGui::IsKeyPressed, but doesn't seem the best way (some keys are retriggered too often).

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions