MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / IR_OnMouseWheel

Method IR_OnMouseWheel

ogsr_engine/xrGame/ui/UIDialogWnd.cpp:130–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128}
129
130bool CUIDialogWnd::IR_OnMouseWheel(int direction)
131{
132 if (!IR_process())
133 return false;
134 Fvector2 pos = GetUICursor()->GetCursorPosition();
135
136 if (direction > 0)
137 OnMouse(pos.x, pos.y, WINDOW_MOUSE_WHEEL_UP);
138 else
139 OnMouse(pos.x, pos.y, WINDOW_MOUSE_WHEEL_DOWN);
140
141 return true;
142}
143
144bool CUIDialogWnd::IR_OnMouseMove(int dx, int dy)
145{

Callers

nothing calls this directly

Calls 2

GetUICursorFunction · 0.85
GetCursorPositionMethod · 0.80

Tested by

no test coverage detected