Add README for the adventurous, allow evdev override from getenv().

This commit is contained in:
Kristian Høgsberg 2008-11-03 15:31:30 -05:00
parent 35370f8073
commit 33a52bd07d
2 changed files with 72 additions and 1 deletions

View file

@ -484,7 +484,13 @@ static const char input_device_file[] =
static void
wl_display_create_input_devices(struct wl_display *display)
{
display->pointer = wl_input_device_create(display, input_device_file, 1);
const char *path;
path = getenv("WAYLAND_POINTER");
if (path == NULL)
path = input_device_file;
display->pointer = wl_input_device_create(display, path, 1);
if (display->pointer != NULL)
wl_hash_insert(&display->objects, display->pointer);