FF Diff Viewer

Comparing 2006 Base SDK to Fortress Forever 2.46

cl_dll/in_mouse.cpp

245246247248249250
SetMousePos( x, y ); } //----------------------------------------------------------------------------- // Purpose: // Input : mstate -
245246247248249250251252253254255
SetMousePos( x, y ); } extern bool ActivateScoreboard(); // |-- Mirv: For scoreboard mouse activation extern bool CanStealMouseForAimSentry(); // |-- Mulch: For stealing mouse button to do aimsentry post radial menu extern void SetStealMouseForAimSentry( bool bValue ); //extern bool CanStealMouseForCloak(); // |-- Mulch: For stealing mouse button to do cloak //----------------------------------------------------------------------------- // Purpose: // Input : mstate -
263264265266267268
int nBit = 1 << i; if ( (mstate & nBit) && !(m_nMouseOldButtons & nBit) ) { engine->Key_Event( K_MOUSE1 + i, 1 ); } if ( !(mstate & nBit) && (m_nMouseOldButtons & nBit) )
268269270271272273274275276277278279280281282283284285286287288289290291292293294295
int nBit = 1 << i; if ( (mstate & nBit) && !(m_nMouseOldButtons & nBit) ) { // --> Mirv: Swallow button 1 if the scoreboard is going to steal mouse focus if (i == 0 && ActivateScoreboard()) continue; // <-- // --> Mulch: Swallow button1 if special flag on player set if( ( i == 0 ) && CanStealMouseForAimSentry() ) { engine->ClientCmd( "aimsentry" ); SetStealMouseForAimSentry( false ); continue; } // <-- // --> Mulch: Swallow button1 if cloaked but send // a command saying we uncloaked //if( ( i == 0 ) && CanStealMouseForCloak() ) //{ // engine->ClientCmd( "cloak" ); // continue; //} // <-- engine->Key_Event( K_MOUSE1 + i, 1 ); } if ( !(mstate & nBit) && (m_nMouseOldButtons & nBit) )