Input handling. ParticleSystem is now global