mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-04-21 03:55:05 +00:00
Provide action for the extra mouse buttons
This commit is contained in:
parent
75ce0b5c3f
commit
fd9a218828
1 changed files with 9 additions and 0 deletions
|
@ -661,6 +661,15 @@ input_manager_process_mouse_button(struct input_manager *im,
|
|||
if (!im->forward_all_clicks) {
|
||||
int action = down ? ACTION_DOWN : ACTION_UP;
|
||||
|
||||
if (control && event->button == SDL_BUTTON_X1) {
|
||||
action_app_switch(im->controller, action);
|
||||
return;
|
||||
}
|
||||
if (control && event->button == SDL_BUTTON_X2) {
|
||||
expand_notification_panel(im->controller);
|
||||
return;
|
||||
}
|
||||
|
||||
if (control && event->button == SDL_BUTTON_RIGHT) {
|
||||
press_back_or_turn_screen_on(im->controller, action);
|
||||
return;
|
||||
|
|
Loading…
Add table
Reference in a new issue