MCPcopy Create free account
hub / github.com/WayfireWM/wayfire / handle_pointer_motion

Method handle_pointer_motion

plugins/single_plugins/wrot.cpp:223–239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

221 }
222
223 void handle_pointer_motion(wf::pointf_t pointer_position, uint32_t time_ms) override
224 {
225 if (current_view && current_view->get_output())
226 {
227 auto og = current_view->get_output()->get_layout_geometry();
228 pointer_position.x -= og.x;
229 pointer_position.y -= og.y;
230 }
231
232 if (current_mode == mode::ROT_2D)
233 {
234 motion_2d(pointer_position.x, pointer_position.y);
235 } else if (current_mode == mode::ROT_3D)
236 {
237 motion_3d(pointer_position.x, pointer_position.y);
238 }
239 }
240
241 void input_released()
242 {

Callers

nothing calls this directly

Calls 2

get_layout_geometryMethod · 0.80
get_outputMethod · 0.45

Tested by

no test coverage detected