MCPcopy Create free account
hub / github.com/arrayfire/forge / keyboardHandler

Method keyboardHandler

src/backend/opengl/glfw/window.cpp:279–284  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

277}
278
279void Widget::keyboardHandler(int pKey, int pScancode, int pAction, int pMods)
280{
281 if (pKey == GLFW_KEY_ESCAPE && pAction == GLFW_PRESS) {
282 hide();
283 }
284}
285
286void Widget::cursorHandler(const float pXPos, const float pYPos)
287{

Callers 1

WidgetMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected