Lines 830-838
static int last_corner_action
Link Here
|
830 |
static int last_finger_action = GPM_B_NOT_SET; |
830 |
static int last_finger_action = GPM_B_NOT_SET; |
831 |
static int last_normal_button_actions[6] = |
831 |
static int last_normal_button_actions[6] = |
832 |
{GPM_B_NOT_SET,GPM_B_NOT_SET,GPM_B_NOT_SET,GPM_B_NOT_SET,GPM_B_NOT_SET,GPM_B_NOT_SET}; |
832 |
{GPM_B_NOT_SET,GPM_B_NOT_SET,GPM_B_NOT_SET,GPM_B_NOT_SET,GPM_B_NOT_SET,GPM_B_NOT_SET}; |
833 |
static int last_stick_button_actions[3] = |
833 |
static int last_stick_button_actions[8] = |
834 |
{GPM_B_NOT_SET,GPM_B_NOT_SET,GPM_B_NOT_SET}; |
834 |
{GPM_B_NOT_SET,GPM_B_NOT_SET,GPM_B_NOT_SET}; |
835 |
static int last_4_way_button_actions[4] = |
835 |
static int last_4_way_button_actions[8] = |
836 |
{GPM_B_NOT_SET,GPM_B_NOT_SET,GPM_B_NOT_SET,GPM_B_NOT_SET}; |
836 |
{GPM_B_NOT_SET,GPM_B_NOT_SET,GPM_B_NOT_SET,GPM_B_NOT_SET}; |
837 |
|
837 |
|
838 |
/* toss status information */ |
838 |
/* toss status information */ |
Lines 1483-1489
static int syn_ps2_process_extended_pack
Link Here
|
1483 |
} |
1483 |
} |
1484 |
|
1484 |
|
1485 |
/* Multiplexing with the stick (guest) device. */ |
1485 |
/* Multiplexing with the stick (guest) device. */ |
1486 |
state->buttons |= last_4_way_buttons | last_stick_buttons; |
1486 |
if (stick_pressure_enabled) { |
|
|
1487 |
tmp_buttons = report->pressure == 0 ? GPM_B_NONE : last_stick_buttons; |
1488 |
if (tmp_buttons || last_stick_buttons) { |
1489 |
tp_process_repeating_actions(state,tmp_buttons,last_stick_buttons, |
1490 |
&last_stick_button_actions[0],stick_actions); |
1491 |
last_stick_buttons = tmp_buttons; |
1492 |
} |
1493 |
} |
1494 |
if (four_way_button_enabled) { |
1495 |
tmp_buttons = report->pressure == 0 ? GPM_B_NONE : last_4_way_buttons; |
1496 |
if (tmp_buttons || last_4_way_buttons) { |
1497 |
tp_process_repeating_actions(state,tmp_buttons,last_4_way_buttons, |
1498 |
&last_4_way_button_actions[0],four_button_actions); |
1499 |
last_4_way_buttons = tmp_buttons; |
1500 |
} |
1501 |
} |
1487 |
|
1502 |
|
1488 |
return 0; |
1503 |
return 0; |
1489 |
} |
1504 |
} |