Issue With Dual Touch SDL 2.0 Andriod

I can’t seem to get working perfectly.
If I tap with one finger it works fine, i tap the second finger it works 50% of the, it goes off and on.
I think there is something I’m not understanding correctly in the events.
bf1 = first touch
bf2 = second tocuh
if I place both fingers and print out the bool’s of bf1 and bf2.
bf1 works perfectly, but bf2 goes from 0 to 1, works and doesn’t work, with both fingers on the screen.

void Input::Core( bool &bGameRunning)
{
while ( SDL_PollEvent(&event) )
{
if (event.type == SDL_FINGERDOWN)
{
bFingerDown = true;

		if (event.tfinger.fingerId == 0)
		{
			iMouseX = Display0->GetScreenWidth() * event.tfinger.x;
			iMouseY = Display0->GetScreenHeight() * event.tfinger.y;
			bf1 = true;
		}
		if (event.tfinger.fingerId == 1)
		{
			iMouseX2 = Display0->GetScreenWidth() * event.tfinger.x;
			iMouseY2 = Display0->GetScreenHeight() * event.tfinger.y;
			bf2 = true;
		}
	}

	if (event.type == SDL_FINGERUP)
	{
		if (event.tfinger.fingerId == 0 )
		{
			bf1 = false;
			iMouseX = -1;
			iMouseY = -1;
			//bShoot = false;
		}

		if (event.tfinger.fingerId == 1)
		{
			bf2 = false;
			iMouseX2 = -1;
			iMouseY2 = -1;
		}

		if (bf1 == false && bf2 == false)
			bFingerDown == false;
		}

}

don’t use fingerId.

use SDL_GetTouchFinger() which takes the touchId to get the individual finger coordinates.

depending on what exactly you are trying to do there may be better advice.