diff options
author | Karl Kurbjun <kkurbjun@gmail.com> | 2009-10-05 02:09:00 +0000 |
---|---|---|
committer | Karl Kurbjun <kkurbjun@gmail.com> | 2009-10-05 02:09:00 +0000 |
commit | fb50f468666958564656386b7181a4973e042ebc (patch) | |
tree | 41aa7fc0b690d2690acf281ce3094d1de10c54fb /apps | |
parent | 436776ebb8645f4393bafd01856d7ba2abe83356 (diff) | |
download | rockbox-fb50f468666958564656386b7181a4973e042ebc.tar.gz rockbox-fb50f468666958564656386b7181a4973e042ebc.zip |
Button Driver: Add button_status support with data - allows for reading the /immediate/ value of the touchscreen
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22933 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r-- | apps/plugin.c | 2 | ||||
-rw-r--r-- | apps/plugin.h | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/apps/plugin.c b/apps/plugin.c index 945e99ec71..c37b2fb29b 100644 --- a/apps/plugin.c +++ b/apps/plugin.c | |||
@@ -668,6 +668,8 @@ static const struct plugin_api rockbox_api = { | |||
668 | appsversion, | 668 | appsversion, |
669 | /* new stuff at the end, sort into place next time | 669 | /* new stuff at the end, sort into place next time |
670 | the API gets incompatible */ | 670 | the API gets incompatible */ |
671 | |||
672 | button_status_wdata, | ||
671 | }; | 673 | }; |
672 | 674 | ||
673 | int plugin_load(const char* plugin, const void* parameter) | 675 | int plugin_load(const char* plugin, const void* parameter) |
diff --git a/apps/plugin.h b/apps/plugin.h index 766a309c01..344026f986 100644 --- a/apps/plugin.h +++ b/apps/plugin.h | |||
@@ -836,6 +836,8 @@ struct plugin_api { | |||
836 | const char *appsversion; | 836 | const char *appsversion; |
837 | /* new stuff at the end, sort into place next time | 837 | /* new stuff at the end, sort into place next time |
838 | the API gets incompatible */ | 838 | the API gets incompatible */ |
839 | |||
840 | int (*button_status_wdata)(int *pdata); | ||
839 | }; | 841 | }; |
840 | 842 | ||
841 | /* plugin header */ | 843 | /* plugin header */ |