Support and General Use > User Interface and Voice

sansa clip+ : code modification to improve the lock feature

<< < (2/3) > >>

tata668:

--- Quote from: HornetMaX on May 03, 2011, 12:42:06 PM ---
I checked and you actually don't need to comment out the 2nd line (ACTION_WPS_MENU), unless you really want to get rid of that. If you leave it, you'll have the lock for a press&hold of HOME and the WPS_MENU for a quick press of HOME.


--- End quote ---

Yes, I know. But being able to lock/unlock the player easily while it is in my pocket is really important for me. So I decided to dedicate the HOME button to that only, while in WPS.

sockbox:
I couldnt unlock the keys using the edits above for single home button keylock. It would say 'Buttons Unlocked' and immediately go back to 'Buttons Locked'.


--- Quote ---Hmm I have no lock in FM screen with 3.8.1. Nothing even if I add a line like:
Code:

    { ACTION_STD_KEYLOCK,       BUTTON_HOME|BUTTON_REPEAT,      BUTTON_HOME },

in the definition of button_context_radio in /apps/keymaps/keymaps-clip.c. Is this normal ?
--- End quote ---

You need to define that action in apps/radio/radio.c.

tata668:

--- Quote from: sockbox on May 09, 2011, 07:31:39 AM ---I couldnt unlock the keys using the edits above for single home button keylock. It would say 'Buttons Unlocked' and immediately go back to 'Buttons Locked'.


--- End quote ---

Have you added the "action_wait_for_release();" part?

sockbox:

--- Quote from: tata668 on May 09, 2011, 06:32:08 PM ---Have you added the "action_wait_for_release();" part?

--- End quote ---

Yes.

I'm more interested in the FMS lockscreen though.

HornetMaX:

--- Quote from: sockbox on May 09, 2011, 07:31:39 AM ---I couldnt unlock the keys using the edits above for single home button keylock. It would say 'Buttons Unlocked' and immediately go back to 'Buttons Locked'.

--- End quote ---
Hmm, I managed to have the single-button lock exactly as described by Tata668.

--- Quote from: sockbox on May 09, 2011, 07:31:39 AM ---
--- Quote ---Hmm I have no lock in FM screen with 3.8.1. Nothing even if I add a line like:
Code:

    { ACTION_STD_KEYLOCK,       BUTTON_HOME|BUTTON_REPEAT,      BUTTON_HOME },

in the definition of button_context_radio in /apps/keymaps/keymaps-clip.c. Is this normal ?
--- End quote ---

You need to define that action in apps/radio/radio.c.

--- End quote ---
Ouch, not sure my understanding of RB code is that good ...

MaX.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version