Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate
Sign In | Create Account

Mine
Tuesday, March 6th, 2007 at 12:39:57am UTC 

  1. Index: firmware/target/arm/ipod/3g/button-3g.c
  2. ===================================================================
  3. --- firmware/target/arm/ipod/3g/button-3g.c     (revision 12631)
  4. +++ firmware/target/arm/ipod/3g/button-3g.c     (working copy)
  5. @@ -54,6 +54,16 @@
  6.          {0, -1, 1, 0}
  7.      };
  8.  
  9. +    /* Increases speed of scrolling if wheel rotated faster */
  10. +    static long old_tick = -1;
  11. +    long tick_diff = TIME_AFTER( old_tick, current_tick );
  12. +    int sensitivity;
  13. +
  14. +    if ( tick_diff > 1 ) { /* lowest sensitivity */
  15. +        sensitivity = 6;
  16. +    }
  17. +    else sensitivity = 1; /* highest sensitivity */
  18. +
  19.      if ( prev_scroll == -1 ) {
  20.          prev_scroll = new_scroll;
  21.      }
  22. @@ -64,7 +74,7 @@
  23.      else if (!was_hold) {
  24.          backlight_on();
  25.          reset_poweroff_timer();
  26. -        if (++count == 6) { /* reduce sensitivity */
  27. +        if (++count >= sensitivity ) { /* dynamic sensitivity */
  28.              count = 0;
  29.              switch (direction) {
  30.                  case 1:

Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



Please note that information posted here will expire by default in one month. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.

comments powered by Disqus
worth-right
worth-right