Your Universal Remote Control Center
RemoteCentral.com
Philips Pronto Professional Forum - View Post
Up level
Up level
The following page was printed from RemoteCentral.com:

Login:
Pass:
 
 

Original thread:
Post 3 made on Thursday August 12, 2010 at 00:58
Lyndel McGee
RC Moderator
Joined:
Posts:
August 2001
12,999
Note that with the above code, you are actually skipping 11 channels on a clockwise turn when clicks > 1 as both (clicks > 1) and (clicks > .99) will return true.

if (clicks > 1)
channel +=10;
else if (clicks > 0)
channel++;
else if (-1 > clicks)
channel-=10;
else if (0 > clicks)
channel--;
else
{
// do nothing as (clicks === 0)
}
Lyndel McGee
Philips Pronto Addict/Beta Tester


Hosting Services by ipHouse