Browse Source

Comment about weird behavior

pull/2/head
tomleb 5 years ago
parent
commit
b94da36d5f
  1. 4
      src/graphics/opengl/Window.cpp

4
src/graphics/opengl/Window.cpp

@ -322,11 +322,15 @@ bool Window::initGLFW() { @@ -322,11 +322,15 @@ bool Window::initGLFW() {
}
int yOffsetScroll = 1;
// FIXME Scrolling with this can scroll past boundary whereas the same doesn't happen with
// scrolling wheel
if (key == GLFW_KEY_J && (action == GLFW_PRESS || action == GLFW_REPEAT)) {
std::cout << "J is/was pressed. Scrolling down." << std::endl;
thiz->transformMatrix[13] += yOffsetScroll * 0.1;
thiz->transformMatrixDirty = true;
}
// FIXME Scrolling with this can scroll past boundary whereas the same doesn't happen with
// scrolling wheel
if (key == GLFW_KEY_K && (action == GLFW_PRESS || action == GLFW_REPEAT)) {
std::cout << "K is/was pressed. Scrolling up." << std::endl;
thiz->transformMatrix[13] += -yOffsetScroll * 0.1;

Loading…
Cancel
Save