mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-07 13:29:55 -05:00
Add README for the adventurous, allow evdev override from getenv().
This commit is contained in:
parent
35370f8073
commit
33a52bd07d
2 changed files with 72 additions and 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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue