Skip to content

Commit

Permalink
Merge pull request #33 from hryamzik/hid_app_ptt
Browse files Browse the repository at this point in the history
PTT: fixed 'raise hand' for zoom on mac
  • Loading branch information
xMasterX authored Dec 16, 2023
2 parents 19e4eb1 + 103bf81 commit 3f596c1
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions base_pack/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 @@ -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 Expand Up @@ -431,7 +427,7 @@ static void hid_ptt_menu_callback(void* context, uint32_t osIndex, FuriString* o
case HidPushToTalkAppIndexZoom:
model->callback_trigger_mute = hid_ptt_trigger_mute_linux_zoom;
model->callback_trigger_camera = hid_ptt_trigger_camera_linux_zoom;
model->callback_trigger_hand = hid_ptt_trigger_hand_linux_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 3f596c1

Please sign in to comment.