1
0
Fork 0
forked from len0rd/rockbox

Moved archos backlight code to target tree. Changed old mutlivalue CONFIG_BACKLIGHT to a simple HAVE_BACKLIGHT.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13136 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jens Arnold 2007-04-12 22:12:13 +00:00
parent 734278b7d1
commit 47bf6c5a5a
53 changed files with 256 additions and 152 deletions

View file

@ -49,7 +49,7 @@ struct event_queue button_queue;
static int btn = 0; /* Hopefully keeps track of currently pressed keys... */
#if CONFIG_BACKLIGHT
#ifdef HAVE_BACKLIGHT
static bool filter_first_keypress;
void set_backlight_filter_keypress(bool value)
@ -90,7 +90,7 @@ void button_event(int key, bool pressed)
static int repeat_count = 0;
static bool repeat = false;
static bool post = false;
#if CONFIG_BACKLIGHT
#ifdef HAVE_BACKLIGHT
static bool skip_release = false;
#ifdef HAVE_REMOTE_LCD
static bool skip_remote_release = false;
@ -568,7 +568,7 @@ void button_event(int key, bool pressed)
diff = btn ^ lastbtn;
if(diff && (btn & diff) == 0)
{
#if CONFIG_BACKLIGHT
#ifdef HAVE_BACKLIGHT
#ifdef HAVE_REMOTE_LCD
if(diff & BUTTON_REMOTE)
if(!skip_remote_release)
@ -635,7 +635,7 @@ void button_event(int key, bool pressed)
if (queue_empty(&button_queue))
{
queue_post(&button_queue, BUTTON_REPEAT | btn, 0);
#if CONFIG_BACKLIGHT
#ifdef HAVE_BACKLIGHT
#ifdef HAVE_REMOTE_LCD
if(btn & BUTTON_REMOTE)
{
@ -652,7 +652,7 @@ void button_event(int key, bool pressed)
}
else
{
#if CONFIG_BACKLIGHT
#ifdef HAVE_BACKLIGHT
#ifdef HAVE_REMOTE_LCD
if (btn & BUTTON_REMOTE) {
if (!remote_filter_first_keypress || is_remote_backlight_on())