Thank You for your continued support and contributions!
The problem with 1 is that the software lock only works in the WPS and radio screen IIRC. It shold be very simple to check if X time has passed without any buttons pressed in those screens and enable the lock. Doing it for all screens wouldnt be very easy though.
if (screen_has_lock && keys_locked)
if (screen_has_lock && keys_locked && !(button & BUTTON_VOL_UP) && !(button & BUTTON_VOL_DOWN))
{ ACTION_STD_KEYLOCK, BUTTON_HOME|BUTTON_REPEAT, BUTTON_HOME },
/* { ACTION_WPS_QUICKSCREEN, BUTTON_HOME|BUTTON_REPEAT, BUTTON_HOME }, *//* { ACTION_WPS_MENU, BUTTON_HOME|BUTTON_REL, BUTTON_HOME }, */
action_wait_for_release();
if (screen_has_lock && (ret == ACTION_STD_KEYLOCK)) {
The problem with 1 is that the software lock only works in the WPS and radio screen IIRC.
I instead added:Code: [Select]{ ACTION_STD_KEYLOCK, BUTTON_HOME|BUTTON_REPEAT, BUTTON_HOME },and I commented:Code: [Select]/* { ACTION_WPS_QUICKSCREEN, BUTTON_HOME|BUTTON_REPEAT, BUTTON_HOME }, *//* { ACTION_WPS_MENU, BUTTON_HOME|BUTTON_REL, BUTTON_HOME }, */in /apps/keymaps/keymaps-clip.c
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.
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 ?
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'.
Have you added the "action_wait_for_release();" part?
QuoteHmm 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 ?You need to define that action in apps/radio/radio.c.
Page created in 0.153 seconds with 22 queries.