From fb50f468666958564656386b7181a4973e042ebc Mon Sep 17 00:00:00 2001 From: Karl Kurbjun Date: Mon, 5 Oct 2009 02:09:00 +0000 Subject: 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 --- apps/plugin.c | 2 ++ apps/plugin.h | 2 ++ 2 files changed, 4 insertions(+) (limited to 'apps') 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 = { appsversion, /* new stuff at the end, sort into place next time the API gets incompatible */ + + button_status_wdata, }; 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 { const char *appsversion; /* new stuff at the end, sort into place next time the API gets incompatible */ + + int (*button_status_wdata)(int *pdata); }; /* plugin header */ -- cgit v1.2.3