Function keyboardCallback

Synopsis

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

static void keyboardCallback(GLFWwindow *pGlfwWindow, int key, int scanCode, int action, int modifiers)

Description

No description yet.

Source

Lines 72-83 in Source/Falcor/Core/Window.cpp.

static void keyboardCallback(GLFWwindow* pGlfwWindow, int key, int scanCode, int action, int modifiers)
{
    KeyboardEvent event;
    if (prepareKeyboardEvent(key, action, modifiers, event))
    {
        Window* pWindow = (Window*)glfwGetWindowUserPointer(pGlfwWindow);
        if (pWindow != nullptr)
        {
            pWindow->mpCallbacks->handleKeyboardEvent(event);
        }
    }
}





Add Discussion as Guest

Log in to DocsForge