From e9d96e87acbd79b22837ac4b225ceb0bd0e1942e Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 18 May 2011 12:20:19 +1000 Subject: Add a property to toggle function key mode MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On some keyboards, the multimedia function keys are overlaid with the F keys. This property enables clients to switch the primary mode of these F keys between function keys and multimedia keys. Some keyboards provide an Fn key to toggle between the modes. This is hardware-specific and may or may not work on any given keyboard device. The current imlementation is only hooked up to apple keyboards. The kernel provides a tweak to enable/disable. /sys/module/hid_apple/parameters/fnmode 0 .. keyboard sends Fx keys, Fn disabled 1 .. keyboard sends multimedia keys, Fn toggles to function keys 2 .. keyboard sends function keys, Fn toggles to multimedia keys If fnmode is on 0, we force it to 2. Signed-off-by: Peter Hutterer Reviewed-by: Michel Dänzer --- src/Makefile.am | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/Makefile.am') diff --git a/src/Makefile.am b/src/Makefile.am index d1efe53..b3a5671 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -37,5 +37,6 @@ AM_CPPFLAGS =-I$(top_srcdir)/include emuMB.c \ emuThird.c \ emuWheel.c \ - draglock.c + draglock.c \ + apple.c -- cgit v1.2.3