In your code:
Code:
if (event_type == EVENT_TOUCH)
	{
... here we are if EVENT_TOUCH happened
	}
	else


Every thing AFTER the else is related to those events that AREN'T EVENT_TOUCH. So...
The second if right next the else contains such condition that will never occur because implies the event_type == EVENT_TOUCH and that is exluded in this branch.
The skeleton of the if-then-else statememnt.
Code:
if (condittion)
{
codelines for the condition TRUE branch
}
else
{
codelines for the condition FALSE branch
}


Hope this help.

edit reason: bold doesnt work for me inside code tags.

Last edited by Aku_Aku; 01/11/10 21:39.