2008-11-01 13:48:35 +03:00
|
|
|
/*
|
2009-10-06 18:30:57 +04:00
|
|
|
* Copyright 2001-2009, Haiku, Inc. All Rights Reserved.
|
2008-11-01 13:48:35 +03:00
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*/
|
|
|
|
#ifndef TOUCHPAD_SETTINGS_H
|
|
|
|
#define TOUCHPAD_SETTINGS_H
|
|
|
|
|
|
|
|
#include <SupportDefs.h>
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
bool scroll_twofinger;
|
2009-10-06 18:30:57 +04:00
|
|
|
bool scroll_twofinger_horizontal;
|
2008-11-01 13:48:35 +03:00
|
|
|
float scroll_rightrange; // from 0 to 1
|
|
|
|
float scroll_bottomrange; // from 0 to 1
|
|
|
|
uint16 scroll_xstepsize;
|
|
|
|
uint16 scroll_ystepsize;
|
|
|
|
uint8 scroll_acceleration; // from 0 to 20
|
|
|
|
|
|
|
|
uint8 tapgesture_sensibility; // 0 : no tapgesture
|
|
|
|
// 20: very light tip is enough (default)
|
2019-07-13 17:39:38 +03:00
|
|
|
uint16 padblocker_threshold; //0 to 100
|
2008-11-01 13:48:35 +03:00
|
|
|
} touchpad_settings;
|
|
|
|
|
|
|
|
|
|
|
|
const static touchpad_settings kDefaultTouchpadSettings = {
|
|
|
|
true,
|
|
|
|
true,
|
|
|
|
0.15,
|
|
|
|
0.15,
|
|
|
|
7,
|
|
|
|
10,
|
|
|
|
10,
|
2019-07-13 17:39:38 +03:00
|
|
|
20,
|
|
|
|
30
|
2008-11-01 13:48:35 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
#define TOUCHPAD_SETTINGS_FILE "Touchpad_settings"
|
|
|
|
|
|
|
|
#endif /* TOUCHPAD_SETTINGS_H */
|