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

Function CL_JoystickEvent

code/client/cl_input.cpp:465–470  ·  view source on GitHub ↗

================= CL_JoystickEvent Joystick values stay set until changed ================= */

Source from the content-addressed store, hash-verified

463=================
464*/
465void CL_JoystickEvent( int axis, int value, int time ) {
466 if ( axis < 0 || axis >= MAX_JOYSTICK_AXIS ) {
467 Com_Error( ERR_DROP, "CL_JoystickEvent: bad axis %i", axis );
468 }
469 cl.joystickAxis[axis] = value;
470}
471
472/*
473=================

Callers 1

Com_EventLoopFunction · 0.50

Calls 1

Com_ErrorFunction · 0.50

Tested by

no test coverage detected