From b7a80e2d41a67ca438e95bea2af6e70b1c954ef1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Tue, 31 Aug 2004 16:51:53 +0000 Subject: [PATCH] added a systemkeymap generation based on US-International keymap, it is hardcoded in the Jamfile for now fix a bug in MouseSettings git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8749 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/servers/input/Jamfile | 27 +++++++++++++++++++++++++++ src/servers/input/MouseSettings.cpp | 2 +- 2 files changed, 28 insertions(+), 1 deletion(-) diff --git a/src/servers/input/Jamfile b/src/servers/input/Jamfile index 1536827ad6..36a96b2220 100644 --- a/src/servers/input/Jamfile +++ b/src/servers/input/Jamfile @@ -1,5 +1,30 @@ SubDir OBOS_TOP src servers input ; +rule MkKeymapHeader +{ + local binary = $(1) ; + local source = $(2) ; + + SetupObjectsDir ; + + SEARCH on $(source) = $(SEARCH_SOURCE) ; + MakeLocate $(binary) : $(LOCATE_TARGET) ; + + Depends $(binary) : $(source) keymap ; + MkKeymapHeader1 $(binary) : keymap $(source) ; + LocalClean clean : $(binary) ; +} + +actions MkKeymapHeader1 +{ + $(2[1]) -o "$(1)" -h "$(2[2-])" ; +} + +MkKeymapHeader [ FGristFiles SystemKeymap.cpp ] : US-International.keymap ; + +SEARCH on US-International.keymap + += [ FDirName $(SUBDIR) $(DOTDOT) $(DOTDOT) apps bin keymap ] ; + if $(COMPILE_FOR_R5) { SubDirC++Flags -DCOMPILE_FOR_R5 ; } @@ -22,6 +47,8 @@ Server input_server : MouseSettings.cpp KeyboardSettings.cpp + SystemKeymap.cpp + # storage AddOnMonitor.cpp AddOnMonitorHandler.cpp diff --git a/src/servers/input/MouseSettings.cpp b/src/servers/input/MouseSettings.cpp index 136f0bfa73..c50633cc77 100644 --- a/src/servers/input/MouseSettings.cpp +++ b/src/servers/input/MouseSettings.cpp @@ -120,7 +120,7 @@ MouseSettings::SaveSettings() file.Write(&fSettings.accel, sizeof(fSettings.accel)); file.Write(&fSettings.click_speed, sizeof(fSettings.click_speed)); #else - file.Write(fSettings, sizeof(fSettings)); + file.Write(&fSettings, sizeof(fSettings)); #endif // who is responsible for saving the mouse mode?