Rockbox Ports are now being developed for various digital audio players!
This functionality is already in the rockbox and it works, you can only block the touch buttons.
static const struct button_mapping button_context_standard[] = { { ACTION_STD_PREV, BUTTON_UP, BUTTON_NONE }, { ACTION_STD_PREV, BUTTON_PREV, BUTTON_NONE }, { ACTION_STD_PREVREPEAT, BUTTON_PREV|BUTTON_REPEAT, BUTTON_NONE }, { ACTION_STD_NEXT, BUTTON_DOWN, BUTTON_NONE }, { ACTION_STD_NEXT, BUTTON_NEXT, BUTTON_NONE }, { ACTION_STD_NEXTREPEAT, BUTTON_NEXT|BUTTON_REPEAT, BUTTON_NONE }, { ACTION_STD_CONTEXT, BUTTON_PLAY|BUTTON_REPEAT, BUTTON_PLAY }, { ACTION_STD_CANCEL, BUTTON_HOME|BUTTON_REL, BUTTON_HOME }, { ACTION_STD_OK, BUTTON_PLAY|BUTTON_REL, BUTTON_PLAY }, { ACTION_STD_MENU, BUTTON_OPTION|BUTTON_REL, BUTTON_OPTION }, LAST_ITEM_IN_LIST}; /* button_context_standard */
It may well be that it is enough just to add the required variable to the config to activate Disable Touch, but I don’t know where to look.
static int selectivesoftlock_set_mask(void* param){ (void)param;int mask = global_settings.bt_selective_softlock_actions_mask; struct s_mask_items maskitems[]={ {ID2P(LANG_VOLUME) , SEL_ACTION_VOL}, {ID2P(LANG_ACTION_PLAY), SEL_ACTION_PLAY}, {ID2P(LANG_ACTION_SEEK), SEL_ACTION_SEEK}, {ID2P(LANG_ACTION_SKIP), SEL_ACTION_SKIP}, #ifdef HAVE_BACKLIGHT {ID2P(LANG_ACTION_AUTOLOCK_ON), SEL_ACTION_AUTOLOCK}, #endif #if defined(HAVE_TOUCHPAD) || defined(HAVE_TOUCHSCREEN) {ID2P(LANG_ACTION_DISABLE_TOUCH) , SEL_ACTION_NOTOUCH}, #endif {ID2P(LANG_ACTION_DISABLE_NOTIFY), SEL_ACTION_NONOTIFY} }; mask = mask_select(mask, ID2P(LANG_SOFTLOCK_SELECTIVE) , maskitems,ARRAYLEN(maskitems)); if (mask == SEL_ACTION_NONE) global_settings.bt_selective_softlock_actions = false; else if (global_settings.bt_selective_softlock_actions_mask != mask) global_settings.bt_selective_softlock_actions = true; global_settings.bt_selective_softlock_actions_mask = mask; return true;}
Found the file where I need to add#define HAVE_TOUCHPAD to enable this, but I don't have time tonight to do it, test it, and then submit the pull request but I will try and do it in the morning if everything works out
Awesome! I'll pull it and test it! And ZoRG172, once its merged in the new .rockbox file should be here: https://build.rockbox.org/data/rockbox-fiiom3k.zip, use it in place of the one I provided but follow the same steps as before.
Awesome! I'll pull it and test it! And ZoRG172, once its merged in the new .rockbox file should be here: https://build.rockbox.org/data/rockbox-fiiom3klinux.zip, use it in place of the one I provided but follow the same steps as before.Edit:Corrected the link because I have no idea what I'm talking about
I flashed build from the link, but the menu item did not appear. How do you know or where to track when changes are made?
if you look at the link he sent, this change hasn't been reviewed yet.https://gerrit.rockbox.org/r/c/rockbox/+/3270
Quote from: heyspencerb on April 01, 2021, 08:14:11 PMif you look at the link he sent, this change hasn't been reviewed yet.https://gerrit.rockbox.org/r/c/rockbox/+/3270The reason this isn't committed is that I don't know that it works properly. That's not something I can determine on my own.(Basically I don't know if I'm disabling the correct input device when the touchpad is "locked" -- 50/50 chance I got it right. Assuming the rest of the changes are correct, which isn't a given)
# ./usbboot -v -c x1000 -1 ../../build-spl/spl.m3k --wait 1 -2 ../../build/rockbox.binOpening USB device a108:1000Issue SET_DATA_ADDRESS 0xf4001000Transfer 8632 bytes from host to deviceIssue PROGRAM_START1 0xf4001800Wait 1 secondsIssue SET_DATA_ADDRESS 0x80004000Request SET_DATA_ADDRESS failed: -7
Page created in 0.04 seconds with 19 queries.