--- SheepShaver/src/Unix/prefs_unix.cpp 2003/12/27 10:02:33 1.3 +++ SheepShaver/src/Unix/prefs_unix.cpp 2005/03/28 09:05:28 1.9 @@ -1,7 +1,7 @@ /* * prefs_unix.cpp - Preferences handling, Unix specific things * - * SheepShaver (C) 1997-2002 Christian Bauer and Marc Hellwig + * SheepShaver (C) 1997-2005 Christian Bauer and Marc Hellwig * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -30,13 +30,17 @@ // Platform-specific preferences items prefs_desc platform_prefs_items[] = { {"ether", TYPE_STRING, false, "device name of Mac ethernet adapter"}, + {"etherconfig", TYPE_STRING, false, "path of network config script"}, {"keycodes", TYPE_BOOLEAN, false, "use keycodes rather than keysyms to decode keyboard"}, {"keycodefile", TYPE_STRING, false, "path of keycode translation file"}, + {"mousewheelmode", TYPE_INT32, false, "mouse wheel support mode (0=page up/down, 1=cursor up/down)"}, + {"mousewheellines", TYPE_INT32, false, "number of lines to scroll in mouse wheel mode 1"}, {"dsp", TYPE_STRING, false, "audio output (dsp) device name"}, {"mixer", TYPE_STRING, false, "audio mixer device name"}, #ifdef HAVE_SIGSEGV_SKIP_INSTRUCTION {"ignoresegv", TYPE_BOOLEAN, false, "ignore illegal memory accesses"}, #endif + {"idlewait", TYPE_BOOLEAN, false, "sleep when idle"}, {NULL, TYPE_END, false, NULL} // End of list }; @@ -100,8 +104,8 @@ void AddPlatformPrefsDefaults(void) { PrefsAddBool("keycodes", false); PrefsReplaceString("extfs", "/"); - PrefsAddInt32("windowmodes", 3); - PrefsAddInt32("screenmodes", 0x3f); + PrefsReplaceInt32("mousewheelmode", 1); + PrefsReplaceInt32("mousewheellines", 3); #ifdef __linux__ if (access("/dev/.devfsd", F_OK) < 0) { PrefsReplaceString("dsp", "/dev/dsp"); @@ -117,4 +121,5 @@ void AddPlatformPrefsDefaults(void) #ifdef HAVE_SIGSEGV_SKIP_INSTRUCTION PrefsAddBool("ignoresegv", false); #endif + PrefsAddBool("idlewait", true); }