From f056e688a319f527c95c3d1eb3b8a95dc9b2031d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Fri, 9 Dec 2005 17:52:18 +0000 Subject: [PATCH] now uses the same defaults as in the input_server when unable to contact the input_server git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15454 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/interface/InterfaceDefs.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/kits/interface/InterfaceDefs.cpp b/src/kits/interface/InterfaceDefs.cpp index 7cb0b1f750..8c290428b1 100644 --- a/src/kits/interface/InterfaceDefs.cpp +++ b/src/kits/interface/InterfaceDefs.cpp @@ -297,7 +297,7 @@ get_click_speed(bigtime_t *speed) _control_input_server_(&command, &reply); if (reply.FindInt64("speed", speed) != B_OK) - *speed = 250000; + *speed = 500000; return B_OK; } @@ -322,7 +322,7 @@ get_mouse_speed(int32 *speed) _control_input_server_(&command, &reply); if (reply.FindInt32("speed", speed) != B_OK) - return B_ERROR; + *speed = 65536; return B_OK; } @@ -347,7 +347,7 @@ get_mouse_acceleration(int32 *speed) _control_input_server_(&command, &reply); if (reply.FindInt32("speed", speed) != B_OK) - return B_ERROR; + *speed = 65536; return B_OK; } @@ -372,7 +372,7 @@ get_key_repeat_rate(int32 *rate) _control_input_server_(&command, &reply); if (reply.FindInt32("rate", rate) != B_OK) - return B_ERROR; + *rate = 250000; return B_OK; } @@ -397,7 +397,7 @@ get_key_repeat_delay(bigtime_t *delay) _control_input_server_(&command, &reply); if (reply.FindInt64("delay", delay) != B_OK) - *delay = 40000; + *delay = 200; return B_OK; }