diff options
author | Kristian Høgsberg <krh@redhat.com> | 2008-11-03 15:31:30 -0500 |
---|---|---|
committer | Kristian Høgsberg <krh@redhat.com> | 2008-11-06 10:53:02 -0500 |
commit | 33a52bd07d28853dbdc19a1426be45f17e573c6b (patch) | |
tree | 30a455c6a02f44b00203a72cc724b2f44a75a9a8 /wayland.c | |
parent | 35370f80735d2a8926aadd081b2ca9a0367cc557 (diff) |
Add README for the adventurous, allow evdev override from getenv().
Diffstat (limited to 'wayland.c')
-rw-r--r-- | wayland.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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); |