mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 16:44:52 +00:00
kdrive: Try the evdev input driver if nothing the regular drivers aren't compiled
Now that this driver works on most systems (hopefully) without any configuration, it makes sense to use it as a fallback default. Signed-off-by: stefan11111 <stefan11111@shitposting.expert>
This commit is contained in:
committed by
Enrico Weigelt
parent
5b81bcb5b4
commit
5c4ac767bb
@@ -1329,18 +1329,34 @@ KdPointerInfo *KdParsePointer(const char *arg)
|
||||
return pi;
|
||||
}
|
||||
|
||||
#ifdef KDRIVE_KBD
|
||||
#define DEFAULT_KEYBOARD "keyboard"
|
||||
#else
|
||||
#ifdef KDRIVE_EVDEV
|
||||
#define DEFAULT_KEYBOARD "evdev"
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef KDRIVE_MOUSE
|
||||
#define DEFAULT_MOUSE "mouse"
|
||||
#else
|
||||
#ifdef KDRIVE_EVDEV
|
||||
#define DEFAULT_MOUSE "evdev"
|
||||
#endif
|
||||
#endif
|
||||
|
||||
void
|
||||
KdAddConfigInputDrivers(void)
|
||||
{
|
||||
#ifdef KDRIVE_KBD
|
||||
#ifdef DEFAULT_KEYBOARD
|
||||
if (!kdConfigKeyboards) {
|
||||
KdAddConfigKeyboard("keyboard");
|
||||
KdAddConfigKeyboard(DEFAULT_KEYBOARD);
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef KDRIVE_MOUSE
|
||||
#ifdef DEFAULT_MOUSE
|
||||
if (!kdConfigPointers) {
|
||||
KdAddConfigPointer("mouse");
|
||||
KdAddConfigPointer(DEFAULT_MOUSE);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user