Skip to content
This repository was archived by the owner on Sep 6, 2019. It is now read-only.

Keyboard input causing "Alert" noise/beep in Windows #118

@scottmudge

Description

@scottmudge

So I've created an OpenGL interface control as a child of the IControl class, which uses GLFW to create a context, and then an immediate-mode GUI backend to create user interface elements.

Because I am unable to create a new window handle and latch the input function callbacks to that as GLFW typically does, I'm simply overriding the in-built input virtual functions (OnMouseDown, OnMouseUp, OnKeyDown, etc), and then passing that data to my OpenGL GUI.

I'm able to successfully pass the mouse input to the UI, but I am having problems passing the keyboard input.

I can capture the key data fine using OnKeyDown (though I cannot get Ctrl/Alt/Shift, etc), but every time I hit a key, Windows creates the "Alert" beep/noise, and I can't stop it.

How can I appropriately capture keyboard input without having Windows throw a fit?

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