* init the repeat timer values, if the timeout happend to be low enough
and you never pressed any key on the usb keyboard, you could suddenly be flooded with a random key... git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23403 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -352,6 +352,9 @@ create_device(const usb_device *dev, const usb_interface_info *ii,
|
||||
device->last_click_time = 0;
|
||||
device->last_buttons = 0;
|
||||
|
||||
device->repeat_timer.current_delay = B_INFINITE_TIMEOUT;
|
||||
device->repeat_timer.key = 0;
|
||||
|
||||
// default values taken from the PS/2 driver
|
||||
device->repeat_rate = 35000;
|
||||
device->repeat_delay = 300000;
|
||||
|
||||
Reference in New Issue
Block a user