Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make sure that action.screen_y starts from 0 as well as action.screen_x #8213

Merged
merged 1 commit into from Nov 3, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions engine/engine/src/engine.cpp
Expand Up @@ -1346,6 +1346,7 @@ namespace dmEngine
{
Engine* engine = (Engine*)user_data;
int32_t window_height = dmGraphics::GetWindowHeight(engine->m_GraphicsContext);
window_height -= 1; // mouse position uses [0; size - 1] instead of [1, size]
dmArray<dmGameObject::InputAction>* input_buffer = &engine->m_InputBuffer;
dmGameObject::InputAction input_action;
input_action.m_ActionId = action_id;
Expand Down