MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / get_mouse_raw_values

Method get_mouse_raw_values

linux/lnxcontroller.cpp:675–683  ·  view source on GitHub ↗

get raw values for the controllers

Source from the content-addressed store, hash-verified

673
674// get raw values for the controllers
675int lnxgameController::get_mouse_raw_values(int *x, int *y) {
676 if (m_Suspended)
677 return 0;
678
679 *x = m_MseState.mx;
680 *y = m_MseState.my;
681
682 return m_MseState.btnmask;
683}
684
685unsigned lnxgameController::get_joy_raw_values(int *x, int *y) {
686 unsigned btn = 0;

Callers 2

ProcessButtonsFunction · 0.45
TelComHandleAllEventsFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected