From 385608db90990504e165cbb0526db58eaa0dfd60 Mon Sep 17 00:00:00 2001 From: David Herrmann Date: Sun, 4 Aug 2013 14:37:41 +0200 Subject: [PATCH] Ignore independent extensions We do not support classic/pro controller extensions in this driver so let evdev handle these. Signed-off-by: David Herrmann --- 60-xorg-xwiimote.conf | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/60-xorg-xwiimote.conf b/60-xorg-xwiimote.conf index b003adf..17de4a0 100644 --- a/60-xorg-xwiimote.conf +++ b/60-xorg-xwiimote.conf @@ -1,6 +1,9 @@ # X11 xorg xf86-input-xwiimote config # Load correct xwiimote driver for all connected Nintendo Wii Remotes. # Overwrite previous blacklist. +# We do not load the driver on unsupported extensions. This currently includes +# independent extension like classic-controller and pro-controller. Instead, the +# evdev driver is loaded (there is no way to negate InputClass Match* rules..) Section "InputClass" Identifier "Nintendo Wii Remote" @@ -9,3 +12,19 @@ Section "InputClass" Option "Ignore" "off" Driver "xwiimote" EndSection + +Section "InputClass" + Identifier "Nintendo Wii Remote Classic Controller Whitelist" + MatchProduct "Nintendo Wii Remote Classic Controller" + MatchDevicePath "/dev/input/event*" + Option "Ignore" "off" + Driver "evdev" +EndSection + +Section "InputClass" + Identifier "Nintendo Wii Remote Pro Controller Whitelist" + MatchProduct "Nintendo Wii Remote Pro Controller" + MatchDevicePath "/dev/input/event*" + Option "Ignore" "off" + Driver "evdev" +EndSection