2008-11-01 10:48:35 +00:00
|
|
|
/*
|
2025-11-24 17:44:41 +00:00
|
|
|
* Copyright 2001-2025, Haiku, Inc. All Rights Reserved.
|
2008-11-01 10:48:35 +00: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 14:30:57 +00:00
|
|
|
bool scroll_twofinger_horizontal;
|
2008-11-01 10:48:35 +00: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
|
2025-01-13 20:01:41 -05:00
|
|
|
// 20: very light tap is enough (default)
|
2019-07-13 20:09:38 +05:30
|
|
|
uint16 padblocker_threshold; //0 to 100
|
2025-01-13 20:01:41 -05:00
|
|
|
|
|
|
|
|
int32 trackpad_speed;
|
|
|
|
|
int32 trackpad_acceleration;
|
|
|
|
|
|
|
|
|
|
bool scroll_reverse;
|
2025-11-24 17:44:41 +00:00
|
|
|
bool scroll_twofinger_natural_scrolling;
|
2025-11-24 17:30:11 +00:00
|
|
|
|
|
|
|
|
uint8 edge_motion; // 0: disabled
|
|
|
|
|
// or combined flags of:
|
|
|
|
|
// 0x01: edge motion on move
|
|
|
|
|
// 0x02: edge motion on tap drag
|
|
|
|
|
// 0x04: edge motion on button click move
|
|
|
|
|
// 0x08: edge motion on button click drag
|
2025-11-24 17:55:00 +00:00
|
|
|
|
2025-11-24 17:58:18 +00:00
|
|
|
bool finger_click; // 1 finger click -> click button id 1
|
|
|
|
|
// 2 fingers' click -> click button id 2
|
|
|
|
|
// 3 fingers' click -> click button id 3
|
|
|
|
|
|
2025-11-24 17:55:00 +00:00
|
|
|
bool software_button_areas;
|
2008-11-01 10:48:35 +00:00
|
|
|
} touchpad_settings;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const static touchpad_settings kDefaultTouchpadSettings = {
|
|
|
|
|
true,
|
|
|
|
|
true,
|
|
|
|
|
0.15,
|
|
|
|
|
0.15,
|
|
|
|
|
7,
|
|
|
|
|
10,
|
|
|
|
|
10,
|
2019-07-13 20:09:38 +05:30
|
|
|
20,
|
2025-01-13 20:01:41 -05:00
|
|
|
30,
|
|
|
|
|
65536,
|
|
|
|
|
65536,
|
2025-11-24 17:44:41 +00:00
|
|
|
false,
|
2025-11-24 17:30:11 +00:00
|
|
|
true,
|
2025-11-24 17:55:00 +00:00
|
|
|
0x02,
|
2025-11-24 17:58:18 +00:00
|
|
|
true,
|
2025-11-24 17:55:00 +00:00
|
|
|
false
|
2008-11-01 10:48:35 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#define TOUCHPAD_SETTINGS_FILE "Touchpad_settings"
|
|
|
|
|
|
|
|
|
|
#endif /* TOUCHPAD_SETTINGS_H */
|