Function charInputCallback

Synopsis

#include <Source/Falcor/Core/Window.cpp>

static void charInputCallback(GLFWwindow *pGlfwWindow, uint32_t input)

Description

No description yet.

Source

Lines 85-96 in Source/Falcor/Core/Window.cpp.

static void charInputCallback(GLFWwindow* pGlfwWindow, uint32_t input)
{
    KeyboardEvent event;
    event.type = KeyboardEvent::Type::Input;
    event.codepoint = input;
    Window* pWindow = (Window*)glfwGetWindowUserPointer(pGlfwWindow);
    if (pWindow != nullptr)
    {
        pWindow->mpCallbacks->handleKeyboardEvent(event);
    }
}





Add Discussion as Guest

Log in to DocsForge