MCPcopy Create free account
hub / github.com/ErrorAtLine0/infinipaint / backend_mouse_wheel_update

Method backend_mouse_wheel_update

src/InputManager.cpp:473–484  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

471}
472
473void InputManager::backend_mouse_wheel_update(const SDL_MouseWheelEvent& e) {
474 Vector2f mouseNewPos = backend_cursor_pos_calculation({e.mouse_x, e.mouse_y});
475 mouse.set_pos(mouseNewPos);
476
477 main.input_mouse_wheel_callback({
478 .mousePos = mouseNewPos,
479 .amount = {e.x, e.y},
480 .tickAmount = {e.integer_x, e.integer_y}
481 });
482
483 isTouchDevice = false;
484}
485
486void InputManager::backend_pen_button_down_update(const SDL_PenButtonEvent& e) {
487 Vector2f mouseNewPos = backend_cursor_pos_calculation({e.x, e.y});

Callers 1

main.cppFile · 0.80

Calls 2

set_posMethod · 0.80

Tested by

no test coverage detected