changed signature
added error outputs git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8742 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
1e4e105d82
commit
bab3205a73
@ -11,7 +11,7 @@
|
||||
#include "KeyboardWindow.h"
|
||||
#include "KeyboardMessages.h"
|
||||
|
||||
const char KeyboardApplication::kKeyboardApplicationSig[] = "application/x-vnd.OpenBeOS-KYBD";
|
||||
const char KeyboardApplication::kKeyboardApplicationSig[] = "application/x-vnd.Haiku-KeyboardPrefs";
|
||||
|
||||
int main(int, char**)
|
||||
{
|
||||
|
@ -19,9 +19,11 @@ const char KeyboardSettings::kKeyboardSettingsFile[] = "Keyboard_settings";
|
||||
|
||||
KeyboardSettings::KeyboardSettings()
|
||||
{
|
||||
get_key_repeat_rate(&fSettings.key_repeat_rate);
|
||||
get_key_repeat_delay(&fSettings.key_repeat_delay);
|
||||
|
||||
if (get_key_repeat_rate(&fSettings.key_repeat_rate)!=B_OK)
|
||||
fprintf(stderr, "error while get_key_repeat_rate!\n");
|
||||
if (get_key_repeat_delay(&fSettings.key_repeat_delay)!=B_OK)
|
||||
fprintf(stderr, "error while get_key_repeat_delay!\n");
|
||||
|
||||
fCorner.x = 50;
|
||||
fCorner.y = 50;
|
||||
|
||||
@ -70,7 +72,8 @@ KeyboardSettings::SetWindowCorner(BPoint corner)
|
||||
void
|
||||
KeyboardSettings::SetKeyboardRepeatRate(int32 rate)
|
||||
{
|
||||
set_key_repeat_rate(rate);
|
||||
if (set_key_repeat_rate(rate)!=B_OK)
|
||||
fprintf(stderr, "error while set_key_repeat_rate!\n");
|
||||
fSettings.key_repeat_rate = rate;
|
||||
}
|
||||
|
||||
@ -78,7 +81,8 @@ KeyboardSettings::SetKeyboardRepeatRate(int32 rate)
|
||||
void
|
||||
KeyboardSettings::SetKeyboardRepeatDelay(bigtime_t delay)
|
||||
{
|
||||
set_key_repeat_delay(delay);
|
||||
if (set_key_repeat_delay(delay)!=B_OK)
|
||||
fprintf(stderr, "error while set_key_repeat_delay!\n");
|
||||
fSettings.key_repeat_delay = delay;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user