forked from len0rd/rockbox
button: allow disabling software poweroff
On some devices, the button driver allows a "software poweroff" by long- pressing a certain key. This behavior is inconvnient when that button needs to be held down for other purposes, such as moving the cursor in rockpaint or sgt-untangle. This patch allows selectively disabling the software poweroff (enabled by default) from both core and plugin code. Change-Id: I7580752888ae5c7c7c5eb1be5966e3d67f17d4b4
This commit is contained in:
parent
f49442d7b7
commit
a65a341a00
6 changed files with 55 additions and 3 deletions
|
|
@ -130,4 +130,9 @@ int touchscreen_last_touch(void);
|
|||
void button_enable_touch(bool en);
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_SW_POWEROFF
|
||||
void button_set_sw_poweroff_state(bool en);
|
||||
bool button_get_sw_poweroff_state(void);
|
||||
#endif
|
||||
|
||||
#endif /* _BUTTON_H_ */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue