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 8 made on Tuesday January 13, 2009 at 18:06
GuerillaBuild
Long Time Member
Joined:
Posts:
December 2008
79
Hi judderrod,

if you're able to program the rotary wheel, you've gotten a good taste of javascript already. If you're looking for syntax and structure information, try dialing up W3Schools on google. They have a pretty good reference and getting started section for Javascript. Considering you come from the Basic world, you'll find javascript to be seriously lacking in verbocity; other than that a loop is a loop and an if statement is still an if statement!

Regarding slow scrolling the rotary wheel: It can be done! Before jumping into velocity control for the wheel: The reason the scroll wheel accelerates is based on the fact that it reports how many clicks have passed each second. So if you get rotary happy and spin the little bugger quickly the first time it might skip forward as much as 4 clicks in one second; whereas if you give it a gentle nudge it may report 0 or 1. Put a governor in your onRotary function such that if (clicks >=1) {clicks = 1}.
With the governor in place, no matter how fast you spin the rotary wheel it will always click forward one click at a time.

Hope this helps!

Cheers // Jason
You can hide almost anything until you have to put the drywall up!


Hosting Services by ipHouse