Rename "shake" to "menu"

The action sends AKEYCODE_MENU, so just name it "menu".

See <https://github.com/Genymobile/scrcpy/pull/85>.
This commit is contained in:
Romain Vimont 2018-03-23 10:07:48 +01:00
parent 301c52b603
commit 35e9a64c34

View file

@ -78,8 +78,8 @@ static inline void action_volume_down(struct controller *controller) {
send_keycode(controller, AKEYCODE_VOLUME_DOWN, "VOLUME_DOWN"); send_keycode(controller, AKEYCODE_VOLUME_DOWN, "VOLUME_DOWN");
} }
static inline void action_shake(struct controller *controller) { static inline void action_menu(struct controller *controller) {
send_keycode(controller, AKEYCODE_MENU, "SHAKE"); send_keycode(controller, AKEYCODE_MENU, "MENU");
} }
// turn the screen on if it was off, press BACK otherwise // turn the screen on if it was off, press BACK otherwise
@ -184,7 +184,7 @@ void input_manager_process_key(struct input_manager *input_manager,
action_app_switch(input_manager->controller); action_app_switch(input_manager->controller);
return; return;
case SDLK_s: case SDLK_s:
action_shake(input_manager->controller); action_menu(input_manager->controller);
return; return;
case SDLK_p: case SDLK_p:
action_power(input_manager->controller); action_power(input_manager->controller);