diff --git a/demo/demo/hexboard/board.cpp b/demo/demo/hexboard/board.cpp index c562474f121e66b4e289e4d904eb841097620a97..4e39ba921345d88a8ff89879c900fe635f7dabea 100644 --- a/demo/demo/hexboard/board.cpp +++ b/demo/demo/hexboard/board.cpp @@ -70,8 +70,8 @@ namespace demo::hexboard { // check if a button was pressed auto& input = this->input(); { - const auto mouseNDC = fggl::input::mouse_axis(input.mouse); - const auto screenPos = ndc_to_screen(mouseNDC, m_screen); + const auto mouseNdc = fggl::input::mouse_axis(input.mouse); + const auto screenPos = ndc_to_screen(mouseNdc, m_screen); // calculate what the user clicked on auto worldPx = m_camera->unproject(screenPos); @@ -79,7 +79,7 @@ namespace demo::hexboard { if (input.mouse.pressed(fggl::input::MouseButton::LEFT)) { m_selections->selected = m_selections->hover; - m_camera->moveBy( mouseNDC * (m_screen * 0.5F) ); + m_camera->moveBy(mouseNdc * (m_screen * 0.5F) ); } if ( input.mouse.down(fggl::input::MouseButton::RIGHT) ) {