Skip to content

Commit

Permalink
PTT: fixed 'raise hand' in zoom for mac
Browse files Browse the repository at this point in the history
  • Loading branch information
hryamzik committed Dec 15, 2023
1 parent af5e802 commit 5168304
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions applications/system/hid_app/views/hid_ptt.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,7 @@ static void hid_ptt_trigger_camera_linux_zoom(HidPushToTalk* hid_ptt) {
hid_hal_keyboard_press( hid_ptt->hid, KEY_MOD_LEFT_ALT | HID_KEYBOARD_V);
hid_hal_keyboard_release(hid_ptt->hid, KEY_MOD_LEFT_ALT | HID_KEYBOARD_V);
}
static void hid_ptt_trigger_hand_macos_zoom(HidPushToTalk* hid_ptt) {
hid_hal_keyboard_press( hid_ptt->hid, KEY_MOD_LEFT_GUI| HID_KEYBOARD_Y);
hid_hal_keyboard_release(hid_ptt->hid, KEY_MOD_LEFT_GUI| HID_KEYBOARD_Y);
}
static void hid_ptt_trigger_hand_linux_zoom(HidPushToTalk* hid_ptt) {
static void hid_ptt_trigger_hand_zoom(HidPushToTalk* hid_ptt) {
hid_hal_keyboard_press( hid_ptt->hid, KEY_MOD_LEFT_ALT | HID_KEYBOARD_Y);
hid_hal_keyboard_release(hid_ptt->hid, KEY_MOD_LEFT_ALT | HID_KEYBOARD_Y);
}
Expand Down Expand Up @@ -309,7 +305,7 @@ static void hid_ptt_menu_callback(void* context, uint32_t osIndex, FuriString* o
case HidPushToTalkAppIndexGoogleMeet:
model->callback_trigger_mute = hid_ptt_trigger_mute_macos_meet;
model->callback_trigger_camera = hid_ptt_trigger_camera_macos_meet;
model->callback_trigger_hand = hid_ptt_trigger_hand_macos_meet;
model->callback_trigger_hand = hid_ptt_trigger_hand_zoom;
model->callback_start_ptt = hid_ptt_start_ptt_meet_zoom;
model->callback_stop_ptt = hid_ptt_stop_ptt_meet_zoom;
break;
Expand Down Expand Up @@ -363,7 +359,7 @@ static void hid_ptt_menu_callback(void* context, uint32_t osIndex, FuriString* o
case HidPushToTalkAppIndexZoom:
model->callback_trigger_mute = hid_ptt_trigger_mute_macos_zoom;
model->callback_trigger_camera = hid_ptt_trigger_camera_macos_zoom;
model->callback_trigger_hand = hid_ptt_trigger_hand_macos_zoom;
model->callback_trigger_hand = hid_ptt_trigger_hand_zoom;
model->callback_start_ptt = hid_ptt_start_ptt_meet_zoom;
model->callback_stop_ptt = hid_ptt_stop_ptt_meet_zoom;
break;
Expand Down

0 comments on commit 5168304

Please sign in to comment.