hal: Branch 'master'
Sjoerd Simons
sjoerd at kemper.freedesktop.org
Fri Dec 7 14:09:05 PST 2007
hald/linux/addons/addon-input.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit d517d3ad43ffa156b813cd0b8bd4d2cd9c41d992
Author: Sjoerd Simons <sjoerd at luon.net>
Date: Fri Dec 7 23:09:00 2007 +0100
fix the keyboard addon to not ignore key repeat events
This allows one to for example just hold down the brightness keys instead of
needing to tap it to change it multiple steps. Patch by Ryan Lortie.
diff --git a/hald/linux/addons/addon-input.c b/hald/linux/addons/addon-input.c
index 11d9ebc..96d422d 100644
--- a/hald/linux/addons/addon-input.c
+++ b/hald/linux/addons/addon-input.c
@@ -288,7 +288,7 @@ event_io (GIOChannel *channel, GIOCondition condition, gpointer data)
}
}
}
- } else if (input_data->event.type == EV_KEY && key_name[input_data->event.code] != NULL && input_data->event.value == 1) {
+ } else if (input_data->event.type == EV_KEY && key_name[input_data->event.code] != NULL && input_data->event.value) {
dbus_error_init (&error);
libhal_device_emit_condition (ctx, input_data->udi,
"ButtonPressed",
More information about the hal-commit
mailing list