Allow a tap click when the right touchpad button is pressed.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35265 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Clemens Zeidler
2010-01-23 15:23:58 +00:00
parent 5726fbda3c
commit 707e415d47
2 changed files with 9 additions and 2 deletions
@@ -198,7 +198,7 @@ move_to_movement(synaptics_cookie *cookie, touch_event *event,
cookie->tap_delta_y += cookie->movement_maker.yDelta;
if (cookie->tapdrag_started) {
movement->buttons = 0x01; // left button
movement->buttons = kLeftButton;
movement->clicks = 0;
cookie->valid_edge_motion = edge_motion(movement, event,
@@ -321,7 +321,7 @@ event_to_movement(synaptics_cookie *cookie, touch_event *event,
}
}
if (event->buttons != 0) {
if (event->buttons & kLeftButton) {
cookie->tap_clicks = 0;
cookie->tapdrag_started = false;
cookie->tap_started = false;
@@ -70,6 +70,13 @@ typedef struct {
} touchpad_info;
enum button_ids
{
kLeftButton = 0x01,
kRightButton = 0x02
};
typedef struct {
uint8 buttons;
uint32 xPosition;