MCPcopy Create free account
hub / github.com/baldurk/renderdoc / MouseClick

Method MouseClick

qrenderdoc/Windows/BufferViewer.cpp:211–226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

209 }
210
211 virtual void MouseClick(QMouseEvent *e)
212 {
213 m_DragStartPos = e->pos();
214 KeyPressDirection dir = GetDirection(e);
215
216 switch(dir)
217 {
218 default: break;
219 case KeyPressDirection::Left: setMove(Direction::Horiz, -1); break;
220 case KeyPressDirection::Right: setMove(Direction::Horiz, 1); break;
221 case KeyPressDirection::Forward: setMove(Direction::Fwd, 1); break;
222 case KeyPressDirection::Back: setMove(Direction::Fwd, -1); break;
223 case KeyPressDirection::Up: setMove(Direction::Vert, 1); break;
224 case KeyPressDirection::Down: setMove(Direction::Vert, -1); break;
225 }
226 }
227
228 virtual void MouseUnclick(QMouseEvent *e)
229 {

Callers 1

render_clickedMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected