13b45a2ea3
- Import padblocker sources - Add slider to set padblocking time - Generates PadBlocker settings Fixes #11673 Change-Id: Ic88416215aabb1ae6aba79ff41cb55a7f0f8008d Reviewed-on: https://review.haiku-os.org/c/haiku/+/1590 Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
41 lines
825 B
C
41 lines
825 B
C
/*
|
|
* Copyright 2001-2009, Haiku, Inc. All Rights Reserved.
|
|
* Distributed under the terms of the MIT License.
|
|
*/
|
|
#ifndef TOUCHPAD_SETTINGS_H
|
|
#define TOUCHPAD_SETTINGS_H
|
|
|
|
#include <SupportDefs.h>
|
|
|
|
|
|
typedef struct {
|
|
bool scroll_twofinger;
|
|
bool scroll_twofinger_horizontal;
|
|
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)
|
|
uint16 padblocker_threshold; //0 to 100
|
|
} touchpad_settings;
|
|
|
|
|
|
const static touchpad_settings kDefaultTouchpadSettings = {
|
|
true,
|
|
true,
|
|
0.15,
|
|
0.15,
|
|
7,
|
|
10,
|
|
10,
|
|
20,
|
|
30
|
|
};
|
|
|
|
#define TOUCHPAD_SETTINGS_FILE "Touchpad_settings"
|
|
|
|
#endif /* TOUCHPAD_SETTINGS_H */
|