… | |
… | |
1296 | mouse_row = x; |
1296 | mouse_row = x; |
1297 | mouse_col = y; |
1297 | mouse_col = y; |
1298 | state += 32; |
1298 | state += 32; |
1299 | } |
1299 | } |
1300 | |
1300 | |
|
|
1301 | if (MEvent.button == AnyButton) |
|
|
1302 | button_number = 3; |
|
|
1303 | else |
|
|
1304 | { |
1301 | button_number = MEvent.button - Button1; |
1305 | button_number = MEvent.button - Button1; |
1302 | if (button_number > 10) |
1306 | if (button_number > 10) |
1303 | return; |
1307 | return; |
1304 | else if (button_number >= 7) |
1308 | else if (button_number >= 7) |
1305 | button_number += 128 - 7; |
1309 | button_number += 128 - 7; |
1306 | else if (button_number >= 3) |
1310 | else if (button_number >= 3) |
1307 | button_number += 64 - 3; |
1311 | button_number += 64 - 3; |
|
|
1312 | } |
1308 | |
1313 | |
1309 | if (priv_modes & PrivMode_MouseX10) |
1314 | if (priv_modes & PrivMode_MouseX10) |
1310 | { |
1315 | { |
1311 | /* |
1316 | /* |
1312 | * do not report ButtonRelease |
1317 | * do not report ButtonRelease |
… | |
… | |
2169 | mouse_report (ev); |
2174 | mouse_report (ev); |
2170 | } |
2175 | } |
2171 | #else /* MOUSE_REPORT_DOUBLECLICK */ |
2176 | #else /* MOUSE_REPORT_DOUBLECLICK */ |
2172 | MEvent.button = ev.button; |
2177 | MEvent.button = ev.button; |
2173 | mouse_report (ev); |
2178 | mouse_report (ev); |
|
|
2179 | MEvent.button = AnyButton; |
2174 | #endif /* MOUSE_REPORT_DOUBLECLICK */ |
2180 | #endif /* MOUSE_REPORT_DOUBLECLICK */ |
2175 | return; |
2181 | return; |
2176 | } |
2182 | } |
2177 | |
2183 | |
2178 | /* |
2184 | /* |