Guest User

Untitled

a guest
Nov 25th, 2012
98
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. diff --git a/apps/keymaps/keymap-clip.c b/apps/keymaps/keymap-clip.c
  2. index 0caf0de..d31ebb7 100755
  3. --- a/apps/keymaps/keymap-clip.c
  4. +++ b/apps/keymaps/keymap-clip.c
  5. @@ -254,7 +254,9 @@ static const struct button_mapping button_context_radio[]  = {
  6.      { ACTION_SETTINGS_INCREPEAT,BUTTON_VOL_UP|BUTTON_REPEAT,    BUTTON_NONE },
  7.      { ACTION_SETTINGS_DEC,      BUTTON_VOL_DOWN,                BUTTON_NONE },
  8.      { ACTION_SETTINGS_DECREPEAT,BUTTON_VOL_DOWN|BUTTON_REPEAT,  BUTTON_NONE },
  9. -
  10. +#ifndef HAS_BUTTON_HOLD /* Clip+ */
  11. +    { ACTION_STD_KEYLOCK,       BUTTON_HOME|BUTTON_SELECT,      BUTTON_NONE },
  12. +#endif /* HAS_BUTTON_HOLD */
  13.      LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_SETTINGS)
  14.  }; /* button_context_radio */
  15.  
  16. diff --git a/apps/radio/radio.c b/apps/radio/radio.c
  17. index 326e6a3..cabb244 100644
  18. --- a/apps/radio/radio.c
  19. +++ b/apps/radio/radio.c
  20. @@ -354,6 +354,10 @@ static void end_search(void)
  21.      search_dir = 0;
  22.  }
  23.  
  24. +#ifndef HAS_BUTTON_HOLD
  25. +int soft_hold_enable = 0;
  26. +#endif
  27. +
  28.  void radio_screen(void)
  29.  {
  30.      bool done = false;
  31. @@ -476,6 +480,15 @@ void radio_screen(void)
  32.              button_timeout = current_tick + (2*HZ);
  33.          }
  34.  #endif
  35. +
  36. +#ifndef HAS_BUTTON_HOLD
  37. +        if (button == ACTION_STD_KEYLOCK)
  38. +        {
  39. +            soft_hold_enable = !soft_hold_enable;
  40. +        }
  41. +        if(soft_hold_enable)
  42. +            break;
  43. +#endif
  44.          switch(button)
  45.          {
  46.               case ACTION_FM_STOP:
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×