summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaurus Cuelenaere <mcuelenaere@gmail.com>2009-07-03 23:03:07 +0000
committerMaurus Cuelenaere <mcuelenaere@gmail.com>2009-07-03 23:03:07 +0000
commit69c73e8bd6c8c6ac79c6538cb0ad4686b9d1d920 (patch)
tree7bab3843bfe24cbdbb5153baba12827bcd755a72
parent366e1d93b5712933fd466062586c70cb42c8636e (diff)
downloadrockbox-69c73e8bd6c8c6ac79c6538cb0ad4686b9d1d920.tar.gz
rockbox-69c73e8bd6c8c6ac79c6538cb0ad4686b9d1d920.zip
Lua: always expose BUTTON_TOUCHSCREEN and remove BUTTON_ constants from rocklib.c
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21630 a1c6a512-1295-4272-9138-f99709370657
-rwxr-xr-xapps/plugins/lua/button_helper.pl2
-rw-r--r--apps/plugins/lua/rocklib.c3
2 files changed, 0 insertions, 5 deletions
diff --git a/apps/plugins/lua/button_helper.pl b/apps/plugins/lua/button_helper.pl
index 549619c971..7af3231b11 100755
--- a/apps/plugins/lua/button_helper.pl
+++ b/apps/plugins/lua/button_helper.pl
@@ -47,9 +47,7 @@ while(my $line = <STDIN>)
print <<EOF
{"BUTTON_REL", BUTTON_REL},
{"BUTTON_REPEAT", BUTTON_REPEAT},
-#ifdef HAVE_TOUCHSCREEN
{"BUTTON_TOUCHSCREEN", BUTTON_TOUCHSCREEN},
-#endif
};
int main(void)
diff --git a/apps/plugins/lua/rocklib.c b/apps/plugins/lua/rocklib.c
index 410916b2f9..64c1a03d64 100644
--- a/apps/plugins/lua/rocklib.c
+++ b/apps/plugins/lua/rocklib.c
@@ -906,9 +906,6 @@ LUALIB_API int luaopen_rock(lua_State *L)
RB_CONSTANT(TOUCHSCREEN_BUTTON);
#endif
- RB_CONSTANT(BUTTON_REL);
- RB_CONSTANT(BUTTON_REPEAT);
-
rli_init(L);
return 1;