Config: HAL: Touchpads are pointers too

Treat touchpads -- not just mice -- as pointer devices.
This commit is contained in:
Markku Vire 2007-11-01 22:43:04 +02:00 committed by Daniel Stone
parent 41c3069f7c
commit 3f1b6765aa

View File

@ -177,7 +177,8 @@ device_added(LibHalContext *hal_ctx, const char *udi)
if (strcmp(props[i], "input.keys") == 0 ||
strcmp(props[i], "input.keyboard") == 0)
type |= TYPE_KEYS;
if (strcmp(props[i], "input.mouse") == 0)
if (strcmp(props[i], "input.mouse") == 0 ||
strcmp(props[i], "input.touchpad") == 0)
type |= TYPE_POINTER;
}
libhal_free_string_array(props);