Browse Source

appframework: use rawinput for android by default

pull/96/head
nillerusr 2 years ago
parent
commit
1aa326b7f2
  1. 14
      appframework/sdlmgr.cpp
  2. 6
      game/client/particlemgr.cpp

14
appframework/sdlmgr.cpp

@ -36,8 +36,8 @@ @@ -36,8 +36,8 @@
#define GLMPRINTF(args)
#endif
#ifdef OSX
ConVar osx_rawinput_set_one_time( "osx_rawinput_set_one_time", "0", FCVAR_ARCHIVE|FCVAR_HIDDEN, "");
#if defined( OSX ) || defined( ANDROID )
ConVar rawinput_set_one_time( "rawinput_set_one_time", "0", FCVAR_ARCHIVE|FCVAR_HIDDEN, "");
#endif
ConVar gl_blit_halfx( "gl_blit_halfx", "0" );
@ -1141,17 +1141,15 @@ void CSDLMgr::OnFrameRendered() @@ -1141,17 +1141,15 @@ void CSDLMgr::OnFrameRendered()
ConVarRef rawinput( "m_rawinput" );
#ifdef OSX
// We default raw input to on on Mac and set it one time for all users since
#if defined( OSX ) || defined( ANDROID )
// We default raw input to on on Mac/Android and set it one time for all users since
// it didn't used to be the default.
if ( !osx_rawinput_set_one_time.GetBool() )
if ( !rawinput_set_one_time.GetBool() )
{
osx_rawinput_set_one_time.SetValue( 1 );
rawinput_set_one_time.SetValue( 1 );
rawinput.SetValue( 1 );
}
#endif
m_bRawInput = !m_bCursorVisible && rawinput.IsValid() && rawinput.GetBool();
SDL_bool bWindowGrab = !m_bCursorVisible ? SDL_TRUE : SDL_FALSE;

6
game/client/particlemgr.cpp

@ -1112,7 +1112,7 @@ void CParticleMgr::Term() @@ -1112,7 +1112,7 @@ void CParticleMgr::Term()
{
// Free all the effects.
int iNext;
for ( int i = m_Effects.Head(); i != m_Effects.InvalidIndex(); i = iNext )
for ( intp i = m_Effects.Head(); i != m_Effects.InvalidIndex(); i = iNext )
{
iNext = m_Effects.Next( i );
m_Effects[i]->m_pSim->NotifyRemove();
@ -1389,7 +1389,7 @@ void CParticleMgr::RemoveAllNewEffects() @@ -1389,7 +1389,7 @@ void CParticleMgr::RemoveAllNewEffects()
void CParticleMgr::RemoveAllEffects()
{
int iNext;
for ( int i = m_Effects.Head(); i != m_Effects.InvalidIndex(); i = iNext )
for ( intp i = m_Effects.Head(); i != m_Effects.InvalidIndex(); i = iNext )
{
iNext = m_Effects.Next( i );
RemoveEffect( m_Effects[i] );
@ -1971,7 +1971,7 @@ void CParticleMgr::UpdateAllEffects( float flTimeDelta ) @@ -1971,7 +1971,7 @@ void CParticleMgr::UpdateAllEffects( float flTimeDelta )
// Remove any effects that were flagged to be removed.
int iNext;
for ( int i=m_Effects.Head(); i != m_Effects.InvalidIndex(); i=iNext )
for ( intp i = m_Effects.Head(); i != m_Effects.InvalidIndex(); i=iNext )
{
iNext = m_Effects.Next( i );
CParticleEffectBinding *pEffect = m_Effects[i];

Loading…
Cancel
Save