MCPcopy Create free account
hub / github.com/JACoders/OpenJK / CL_MouseEvent

Function CL_MouseEvent

code/client/cl_input.cpp:448–456  ·  view source on GitHub ↗

================= CL_MouseEvent ================= */

Source from the content-addressed store, hash-verified

446=================
447*/
448void CL_MouseEvent( int dx, int dy, int time ) {
449 if ( Key_GetCatcher( ) & KEYCATCH_UI ) {
450 _UI_MouseEvent( dx, dy );
451 }
452 else {
453 cl.mouseDx[cl.mouseIndex] += dx;
454 cl.mouseDy[cl.mouseIndex] += dy;
455 }
456}
457
458/*
459=================

Callers 1

Com_EventLoopFunction · 0.50

Calls 2

_UI_MouseEventFunction · 0.85
Key_GetCatcherFunction · 0.70

Tested by

no test coverage detected