huuck / FlipperZeroUSBKeyboard

Turn your Flipper Zero into an USB keyboard
BSD 2-Clause "Simplified" License
144 stars 8 forks source link

Doesn't build with latest firmware #2

Closed hryamzik closed 1 year ago

hryamzik commented 1 year ago

Building with current dev branch (currentrly at flipperdevices/flipperzero-firmware@e40376bc commit) fails. I'm building with ./fbt fap_usb_keyboard, is it supposed to be done in a different way or is there some drift in sources?

./fbt fap_usb_keyboard
    CC  applications_user/FlipperZeroUSBKeyboard/views/usb_hid_dirpad.c
    CC  applications_user/FlipperZeroUSBKeyboard/views/usb_hid_keyboard.c
    CC  applications_user/FlipperZeroUSBKeyboard/views/usb_hid_media.c
    CC  applications_user/FlipperZeroUSBKeyboard/views/usb_hid_mouse.c
    CC  applications_user/FlipperZeroUSBKeyboard/usb_hid.c
applications_user/FlipperZeroUSBKeyboard/views/usb_hid_media.c: In function 'usb_hid_media_draw_callback':
applications_user/FlipperZeroUSBKeyboard/views/usb_hid_media.c:41:38: error: 'I_Circles_47x47' undeclared (first use in this function)
   41 |     canvas_draw_icon(canvas, 76, 8, &I_Circles_47x47);
      |                                      ^~~~~~~~~~~~~~~
applications_user/FlipperZeroUSBKeyboard/views/usb_hid_media.c:41:38: note: each undeclared identifier is reported only once for each function it appears in
applications_user/FlipperZeroUSBKeyboard/views/usb_hid_mouse.c: In function 'usb_hid_mouse_draw_callback':
applications_user/FlipperZeroUSBKeyboard/views/usb_hid_mouse.c:29:41: error: 'I_Ble_connected_15x15' undeclared (first use in this function)
   29 |         canvas_draw_icon(canvas, 0, 0, &I_Ble_connected_15x15);
      |                                         ^~~~~~~~~~~~~~~~~~~~~
applications_user/FlipperZeroUSBKeyboard/views/usb_hid_mouse.c:29:41: note: each undeclared identifier is reported only once for each function it appears in
applications_user/FlipperZeroUSBKeyboard/views/usb_hid_keyboard.c:61:31: error: 'I_Pin_arrow_left_9x7' undeclared here (not in a function)
   61 |         {.width = 2, .icon = &I_Pin_arrow_left_9x7, .value = HID_KEYBOARD_DELETE},
      |                               ^~~~~~~~~~~~~~~~~~~~
applications_user/FlipperZeroUSBKeyboard/views/usb_hid_dirpad.c: In function 'usb_hid_dirpad_draw_callback':
applications_user/FlipperZeroUSBKeyboard/views/usb_hid_dirpad.c:40:38: error: 'I_Pin_back_arrow_10x8' undeclared (first use in this function)
   40 |     canvas_draw_icon(canvas, 68, 2, &I_Pin_back_arrow_10x8);
      |                                      ^~~~~~~~~~~~~~~~~~~~~
applications_user/FlipperZeroUSBKeyboard/views/usb_hid_dirpad.c:40:38: note: each undeclared identifier is reported only once for each function it appears in
applications_user/FlipperZeroUSBKeyboard/views/usb_hid_dirpad.c:45:39: error: 'I_Button_18x18' undeclared (first use in this function)
   45 |     canvas_draw_icon(canvas, 21, 24, &I_Button_18x18);
      |                                       ^~~~~~~~~~~~~~
applications_user/FlipperZeroUSBKeyboard/views/usb_hid_media.c:46:42: error: 'I_Pressed_Button_13x13' undeclared (first use in this function)
   46 |         canvas_draw_icon(canvas, 93, 9, &I_Pressed_Button_13x13);
      |                                          ^~~~~~~~~~~~~~~~~~~~~~
applications_user/FlipperZeroUSBKeyboard/views/usb_hid_mouse.c:31:41: error: 'I_Ble_disconnected_15x15' undeclared (first use in this function)
   31 |         canvas_draw_icon(canvas, 0, 0, &I_Ble_disconnected_15x15);
      |                                         ^~~~~~~~~~~~~~~~~~~~~~~~
applications_user/FlipperZeroUSBKeyboard/views/usb_hid_keyboard.c:93:31: error: 'I_Pin_arrow_right_9x7' undeclared here (not in a function)
   93 |         {.width = 2, .icon = &I_Pin_arrow_right_9x7, .value = HID_KEYBOARD_RETURN},
      |                               ^~~~~~~~~~~~~~~~~~~~~
applications_user/FlipperZeroUSBKeyboard/views/usb_hid_media.c:50:39: error: 'I_Volup_8x6' undeclared (first use in this function)
   50 |     canvas_draw_icon(canvas, 96, 12, &I_Volup_8x6);
      |                                       ^~~~~~~~~~~
applications_user/FlipperZeroUSBKeyboard/views/usb_hid_dirpad.c:81:39: error: 'I_Space_65x18' undeclared (first use in this function)
   81 |     canvas_draw_icon(canvas, 63, 25, &I_Space_65x18);
      |                                       ^~~~~~~~~~~~~
applications_user/FlipperZeroUSBKeyboard/views/usb_hid_media.c:60:39: error: 'I_Voldwn_6x6' undeclared (first use in this function)
   60 |     canvas_draw_icon(canvas, 96, 45, &I_Voldwn_6x6);
      |                                       ^~~~~~~~~~~~
applications_user/FlipperZeroUSBKeyboard/views/usb_hid_dirpad.c:86:39: error: 'I_Ok_btn_9x9' undeclared (first use in this function)
   86 |     canvas_draw_icon(canvas, 74, 29, &I_Ok_btn_9x9);
      |                                       ^~~~~~~~~~~~
applications_user/FlipperZeroUSBKeyboard/views/usb_hid_dirpad.c: In function 'usb_hid_dirpad_process':
applications_user/FlipperZeroUSBKeyboard/views/usb_hid_dirpad.c:150:10: error: macro "with_view_model" requires 4 arguments, but only 2 given
  150 |         });
      |          ^
In file included from applications_user/FlipperZeroUSBKeyboard/views/usb_hid_dirpad.h:3,
                 from applications_user/FlipperZeroUSBKeyboard/views/usb_hid_dirpad.c:1:
applications/services/gui/view.h:231: note: macro "with_view_model" defined here
  231 | #define with_view_model(view, type, code, update) \
      | 
applications_user/FlipperZeroUSBKeyboard/views/usb_hid_keyboard.c:107:31: error: 'I_ButtonUp_7x4' undeclared here (not in a function)
  107 |         {.width = 1, .icon = &I_ButtonUp_7x4, .value = HID_KEYBOARD_UP_ARROW},
      |                               ^~~~~~~~~~~~~~
applications_user/FlipperZeroUSBKeyboard/views/usb_hid_dirpad.c:101:5: error: 'with_view_model' undeclared (first use in this function)
  101 |     with_view_model(
      |     ^~~~~~~~~~~~~~~
applications_user/FlipperZeroUSBKeyboard/views/usb_hid_dirpad.c:100:50: error: unused parameter 'usb_hid_dirpad' [-Werror=unused-parameter]
  100 | static void usb_hid_dirpad_process(UsbHidDirpad* usb_hid_dirpad, InputEvent* event) {
      |                                    ~~~~~~~~~~~~~~^~~~~~~~~~~~~~
applications_user/FlipperZeroUSBKeyboard/views/usb_hid_dirpad.c:100:78: error: unused parameter 'event' [-Werror=unused-parameter]
  100 | static void usb_hid_dirpad_process(UsbHidDirpad* usb_hid_dirpad, InputEvent* event) {
      |                                                                  ~~~~~~~~~~~~^~~~~
applications_user/FlipperZeroUSBKeyboard/views/usb_hid_dirpad.c: In function 'usb_hid_dirpad_set_connected_status':
applications_user/FlipperZeroUSBKeyboard/views/usb_hid_dirpad.c:196:10: error: macro "with_view_model" requires 4 arguments, but only 2 given
  196 |         });
      |          ^
In file included from applications_user/FlipperZeroUSBKeyboard/views/usb_hid_dirpad.h:3,
                 from applications_user/FlipperZeroUSBKeyboard/views/usb_hid_dirpad.c:1:
applications/services/gui/view.h:231: note: macro "with_view_model" defined here
  231 | #define with_view_model(view, type, code, update) \
      | 
applications_user/FlipperZeroUSBKeyboard/views/usb_hid_mouse.c:40:42: error: 'I_Pin_back_arrow_10x8' undeclared (first use in this function)
   40 |         canvas_draw_icon(canvas, 0, 54, &I_Pin_back_arrow_10x8);
      |                                          ^~~~~~~~~~~~~~~~~~~~~
applications_user/FlipperZeroUSBKeyboard/views/usb_hid_dirpad.c:192:5: error: 'with_view_model' undeclared (first use in this function)
  192 |     with_view_model(
      |     ^~~~~~~~~~~~~~~
applications_user/FlipperZeroUSBKeyboard/views/usb_hid_dirpad.c:190:77: error: unused parameter 'connected' [-Werror=unused-parameter]
  190 | void usb_hid_dirpad_set_connected_status(UsbHidDirpad* usb_hid_dirpad, bool connected) {
      |                                                                             ^
applications_user/FlipperZeroUSBKeyboard/views/usb_hid_keyboard.c:111:31: error: 'I_Pin_arrow_up_7x9' undeclared here (not in a function)
  111 |         {.width = 1, .icon = &I_Pin_arrow_up_7x9, .value = HID_KEYBOARD_L_SHIFT},
      |                               ^~~~~~~~~~~~~~~~~~
applications_user/FlipperZeroUSBKeyboard/views/usb_hid_media.c:96:38: error: 'I_Pin_back_arrow_10x8' undeclared (first use in this function)
   96 |     canvas_draw_icon(canvas, 0, 54, &I_Pin_back_arrow_10x8);
      |                                      ^~~~~~~~~~~~~~~~~~~~~
applications_user/FlipperZeroUSBKeyboard/views/usb_hid_media.c: In function 'usb_hid_media_process_press':
applications_user/FlipperZeroUSBKeyboard/views/usb_hid_media.c:121:10: error: macro "with_view_model" requires 4 arguments, but only 2 given
  121 |         });
      |          ^
In file included from applications_user/FlipperZeroUSBKeyboard/views/usb_hid_media.h:3,
                 from applications_user/FlipperZeroUSBKeyboard/views/usb_hid_media.c:1:
applications/services/gui/view.h:231: note: macro "with_view_model" defined here
  231 | #define with_view_model(view, type, code, update) \
      | 
cc1: all warnings being treated as errors
applications_user/FlipperZeroUSBKeyboard/views/usb_hid_mouse.c:46:38: error: 'I_Circles_47x47' undeclared (first use in this function)
   46 |     canvas_draw_icon(canvas, 64, 8, &I_Circles_47x47);
      |                                      ^~~~~~~~~~~~~~~
applications_user/FlipperZeroUSBKeyboard/views/usb_hid_media.c:102:5: error: 'with_view_model' undeclared (first use in this function)
  102 |     with_view_model(
      |     ^~~~~~~~~~~~~~~
applications_user/FlipperZeroUSBKeyboard/views/usb_hid_media.c:101:54: error: unused parameter 'usb_hid_media' [-Werror=unused-parameter]
  101 | static void usb_hid_media_process_press(UsbHidMedia* usb_hid_media, InputEvent* event) {
      |                                         ~~~~~~~~~~~~~^~~~~~~~~~~~~
applications_user/FlipperZeroUSBKeyboard/views/usb_hid_media.c:101:81: error: unused parameter 'event' [-Werror=unused-parameter]
  101 | static void usb_hid_media_process_press(UsbHidMedia* usb_hid_media, InputEvent* event) {
      |                                                                     ~~~~~~~~~~~~^~~~~
applications_user/FlipperZeroUSBKeyboard/views/usb_hid_media.c: In function 'hid_media_process_release':
applications_user/FlipperZeroUSBKeyboard/views/usb_hid_media.c:144:10: error: macro "with_view_model" requires 4 arguments, but only 2 given
  144 |         });
      |          ^
In file included from applications_user/FlipperZeroUSBKeyboard/views/usb_hid_media.h:3,
                 from applications_user/FlipperZeroUSBKeyboard/views/usb_hid_media.c:1:
applications/services/gui/view.h:231: note: macro "with_view_model" defined here
  231 | #define with_view_model(view, type, code, update) \
      | 
applications_user/FlipperZeroUSBKeyboard/views/usb_hid_media.c:125:5: error: 'with_view_model' undeclared (first use in this function)
  125 |     with_view_model(
      |     ^~~~~~~~~~~~~~~
applications_user/FlipperZeroUSBKeyboard/views/usb_hid_media.c:124:52: error: unused parameter 'usb_hid_media' [-Werror=unused-parameter]
  124 | static void hid_media_process_release(UsbHidMedia* usb_hid_media, InputEvent* event) {
      |                                       ~~~~~~~~~~~~~^~~~~~~~~~~~~
applications_user/FlipperZeroUSBKeyboard/views/usb_hid_media.c:124:79: error: unused parameter 'event' [-Werror=unused-parameter]
  124 | static void hid_media_process_release(UsbHidMedia* usb_hid_media, InputEvent* event) {
      |                                                                   ~~~~~~~~~~~~^~~~~
applications_user/FlipperZeroUSBKeyboard/views/usb_hid_media.c: In function 'usb_hid_media_alloc':
applications_user/FlipperZeroUSBKeyboard/views/usb_hid_media.c:179:3: error: macro "with_view_model" requires 4 arguments, but only 2 given
  179 |  });
      |   ^
In file included from applications_user/FlipperZeroUSBKeyboard/views/usb_hid_media.h:3,
                 from applications_user/FlipperZeroUSBKeyboard/views/usb_hid_media.c:1:
applications/services/gui/view.h:231: note: macro "with_view_model" defined here
  231 | #define with_view_model(view, type, code, update) \
      | 
applications_user/FlipperZeroUSBKeyboard/views/usb_hid_keyboard.c:120:31: error: 'I_ButtonLeft_4x7' undeclared here (not in a function)
  120 |         {.width = 1, .icon = &I_ButtonLeft_4x7, .value = HID_KEYBOARD_LEFT_ARROW},
      |                               ^~~~~~~~~~~~~~~~
applications_user/FlipperZeroUSBKeyboard/views/usb_hid_media.c:175:2: error: 'with_view_model' undeclared (first use in this function)
  175 |  with_view_model(
      |  ^~~~~~~~~~~~~~~
applications_user/FlipperZeroUSBKeyboard/views/usb_hid_media.c: In function 'usb_hid_media_set_connected_status':
applications_user/FlipperZeroUSBKeyboard/views/usb_hid_media.c:201:10: error: macro "with_view_model" requires 4 arguments, but only 2 given
  201 |         });
      |          ^
In file included from applications_user/FlipperZeroUSBKeyboard/views/usb_hid_media.h:3,
                 from applications_user/FlipperZeroUSBKeyboard/views/usb_hid_media.c:1:
applications/services/gui/view.h:231: note: macro "with_view_model" defined here
  231 | #define with_view_model(view, type, code, update) \
      | 
applications_user/FlipperZeroUSBKeyboard/views/usb_hid_media.c:197:5: error: 'with_view_model' undeclared (first use in this function)
  197 |     with_view_model(
      |     ^~~~~~~~~~~~~~~
applications_user/FlipperZeroUSBKeyboard/views/usb_hid_media.c:195:74: error: unused parameter 'connected' [-Werror=unused-parameter]
  195 | void usb_hid_media_set_connected_status(UsbHidMedia* usb_hid_media, bool connected) {
      |                                                                          ^
cc1: all warnings being treated as errors
applications_user/FlipperZeroUSBKeyboard/views/usb_hid_mouse.c:51:42: error: 'I_Pressed_Button_13x13' undeclared (first use in this function)
   51 |         canvas_draw_icon(canvas, 81, 9, &I_Pressed_Button_13x13);
      |                                          ^~~~~~~~~~~~~~~~~~~~~~
applications_user/FlipperZeroUSBKeyboard/views/usb_hid_keyboard.c:121:31: error: 'I_ButtonDown_7x4' undeclared here (not in a function)
  121 |         {.width = 1, .icon = &I_ButtonDown_7x4, .value = HID_KEYBOARD_DOWN_ARROW},
      |                               ^~~~~~~~~~~~~~~~
applications_user/FlipperZeroUSBKeyboard/views/usb_hid_mouse.c:55:39: error: 'I_Pin_arrow_up_7x9' undeclared (first use in this function)
   55 |     canvas_draw_icon(canvas, 84, 10, &I_Pin_arrow_up_7x9);
      |                                       ^~~~~~~~~~~~~~~~~~
applications_user/FlipperZeroUSBKeyboard/views/usb_hid_keyboard.c:122:31: error: 'I_ButtonRight_4x7' undeclared here (not in a function)
  122 |         {.width = 1, .icon = &I_ButtonRight_4x7, .value = HID_KEYBOARD_RIGHT_ARROW},
      |                               ^~~~~~~~~~~~~~~~~
applications_user/FlipperZeroUSBKeyboard/views/usb_hid_keyboard.c: In function 'usb_hid_keyboard_process':
applications_user/FlipperZeroUSBKeyboard/views/usb_hid_keyboard.c:341:10: error: macro "with_view_model" requires 4 arguments, but only 2 given
  341 |         });
      |          ^
In file included from applications_user/FlipperZeroUSBKeyboard/views/usb_hid_keyboard.h:3,
                 from applications_user/FlipperZeroUSBKeyboard/views/usb_hid_keyboard.c:1:
applications/services/gui/view.h:231: note: macro "with_view_model" defined here
  231 | #define with_view_model(view, type, code, update) \
      | 
applications_user/FlipperZeroUSBKeyboard/views/usb_hid_keyboard.c:278:5: error: 'with_view_model' undeclared (first use in this function)
  278 |     with_view_model(
      |     ^~~~~~~~~~~~~~~
applications_user/FlipperZeroUSBKeyboard/views/usb_hid_keyboard.c:278:5: note: each undeclared identifier is reported only once for each function it appears in
applications_user/FlipperZeroUSBKeyboard/views/usb_hid_keyboard.c:277:54: error: unused parameter 'usb_hid_keyboard' [-Werror=unused-parameter]
  277 | static void usb_hid_keyboard_process(UsbHidKeyboard* usb_hid_keyboard, InputEvent* event) {
      |                                      ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
applications_user/FlipperZeroUSBKeyboard/views/usb_hid_keyboard.c:277:84: error: unused parameter 'event' [-Werror=unused-parameter]
  277 | static void usb_hid_keyboard_process(UsbHidKeyboard* usb_hid_keyboard, InputEvent* event) {
      |                                                                        ~~~~~~~~~~~~^~~~~
applications_user/FlipperZeroUSBKeyboard/views/usb_hid_keyboard.c: In function 'usb_hid_keyboard_alloc':
applications_user/FlipperZeroUSBKeyboard/views/usb_hid_keyboard.c:372:3: error: macro "with_view_model" requires 4 arguments, but only 2 given
  372 |  });
      |   ^
In file included from applications_user/FlipperZeroUSBKeyboard/views/usb_hid_keyboard.h:3,
                 from applications_user/FlipperZeroUSBKeyboard/views/usb_hid_keyboard.c:1:
applications/services/gui/view.h:231: note: macro "with_view_model" defined here
  231 | #define with_view_model(view, type, code, update) \
      | 
applications_user/FlipperZeroUSBKeyboard/views/usb_hid_keyboard.c:368:2: error: 'with_view_model' undeclared (first use in this function)
  368 |  with_view_model(
      |  ^~~~~~~~~~~~~~~
At top level:
applications_user/FlipperZeroUSBKeyboard/views/usb_hid_keyboard.c:259:13: error: 'usb_hid_keyboard_get_select_key' defined but not used [-Werror=unused-function]
  259 | static void usb_hid_keyboard_get_select_key(UsbHidKeyboardModel* model, UsbHidKeyboardPoint delta) {
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
applications_user/FlipperZeroUSBKeyboard/views/usb_hid_keyboard.c:247:16: error: 'usb_hid_keyboard_get_selected_key' defined but not used [-Werror=unused-function]
  247 | static uint8_t usb_hid_keyboard_get_selected_key(UsbHidKeyboardModel* model) {
      |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
applications_user/FlipperZeroUSBKeyboard/views/usb_hid_mouse.c:65:39: error: 'I_Pin_arrow_down_7x9' undeclared (first use in this function)
   65 |     canvas_draw_icon(canvas, 84, 43, &I_Pin_arrow_down_7x9);
      |                                       ^~~~~~~~~~~~~~~~~~~~
applications_user/FlipperZeroUSBKeyboard/views/usb_hid_mouse.c:75:39: error: 'I_Pin_arrow_left_9x7' undeclared (first use in this function)
   75 |     canvas_draw_icon(canvas, 67, 28, &I_Pin_arrow_left_9x7);
      |                                       ^~~~~~~~~~~~~~~~~~~~
applications_user/FlipperZeroUSBKeyboard/views/usb_hid_mouse.c:85:39: error: 'I_Pin_arrow_right_9x7' undeclared (first use in this function)
   85 |     canvas_draw_icon(canvas, 99, 28, &I_Pin_arrow_right_9x7);
      |                                       ^~~~~~~~~~~~~~~~~~~~~
applications_user/FlipperZeroUSBKeyboard/views/usb_hid_mouse.c:90:43: error: 'I_Ok_btn_pressed_13x13' undeclared (first use in this function)
   90 |         canvas_draw_icon(canvas, 81, 25, &I_Ok_btn_pressed_13x13);
      |                                           ^~~~~~~~~~~~~~~~~~~~~~
applications_user/FlipperZeroUSBKeyboard/views/usb_hid_mouse.c:92:43: error: 'I_Left_mouse_icon_9x9' undeclared (first use in this function)
   92 |         canvas_draw_icon(canvas, 83, 27, &I_Left_mouse_icon_9x9);
      |                                           ^~~~~~~~~~~~~~~~~~~~~
    SDKCHK  firmware/targets/f7/api_symbols.csv
scons: *** [build/f7-firmware-D/.extapps/usb_keyboard/views/usb_hid_dirpad.o] Error 1
scons: *** [build/f7-firmware-D/.extapps/usb_keyboard/views/usb_hid_media.o] Error 1
scons: *** [build/f7-firmware-D/.extapps/usb_keyboard/views/usb_hid_keyboard.o] Error 1
applications_user/FlipperZeroUSBKeyboard/views/usb_hid_mouse.c:99:44: error: 'I_Right_mouse_icon_9x9' undeclared (first use in this function)
   99 |         canvas_draw_icon(canvas, 110, 50, &I_Right_mouse_icon_9x9);
      |                                            ^~~~~~~~~~~~~~~~~~~~~~
applications_user/FlipperZeroUSBKeyboard/views/usb_hid_mouse.c: In function 'usb_hid_mouse_process':
applications_user/FlipperZeroUSBKeyboard/views/usb_hid_mouse.c:170:10: error: macro "with_view_model" requires 4 arguments, but only 2 given
  170 |         });
      |          ^
In file included from applications_user/FlipperZeroUSBKeyboard/views/usb_hid_mouse.h:3,
                 from applications_user/FlipperZeroUSBKeyboard/views/usb_hid_mouse.c:1:
applications/services/gui/view.h:231: note: macro "with_view_model" defined here
  231 | #define with_view_model(view, type, code, update) \
      | 
applications_user/FlipperZeroUSBKeyboard/views/usb_hid_mouse.c:104:5: error: 'with_view_model' undeclared (first use in this function)
  104 |     with_view_model(
      |     ^~~~~~~~~~~~~~~
applications_user/FlipperZeroUSBKeyboard/views/usb_hid_mouse.c:103:48: error: unused parameter 'usb_hid_mouse' [-Werror=unused-parameter]
  103 | static void usb_hid_mouse_process(UsbHidMouse* usb_hid_mouse, InputEvent* event) {
      |                                   ~~~~~~~~~~~~~^~~~~~~~~~~~~
applications_user/FlipperZeroUSBKeyboard/views/usb_hid_mouse.c:103:75: error: unused parameter 'event' [-Werror=unused-parameter]
  103 | static void usb_hid_mouse_process(UsbHidMouse* usb_hid_mouse, InputEvent* event) {
      |                                                               ~~~~~~~~~~~~^~~~~
applications_user/FlipperZeroUSBKeyboard/views/usb_hid_mouse.c: In function 'usb_hid_mouse_alloc':
applications_user/FlipperZeroUSBKeyboard/views/usb_hid_mouse.c:201:3: error: macro "with_view_model" requires 4 arguments, but only 2 given
  201 |  });
      |   ^
In file included from applications_user/FlipperZeroUSBKeyboard/views/usb_hid_mouse.h:3,
                 from applications_user/FlipperZeroUSBKeyboard/views/usb_hid_mouse.c:1:
applications/services/gui/view.h:231: note: macro "with_view_model" defined here
  231 | #define with_view_model(view, type, code, update) \
      | 
applications_user/FlipperZeroUSBKeyboard/views/usb_hid_mouse.c:197:2: error: 'with_view_model' undeclared (first use in this function)
  197 |  with_view_model(
      |  ^~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
scons: *** [build/f7-firmware-D/.extapps/usb_keyboard/views/usb_hid_mouse.o] Error 1
API version 8.1 is up to date

********** FBT ERRORS **********
build/f7-firmware-D/.extapps/usb_keyboard/views/usb_hid_dirpad.o: Error 1
build/f7-firmware-D/.extapps/usb_keyboard/views/usb_hid_media.o: Error 1
build/f7-firmware-D/.extapps/usb_keyboard/views/usb_hid_keyboard.o: Error 1
build/f7-firmware-D/.extapps/usb_keyboard/views/usb_hid_mouse.o: Error 1
make: *** [build_keyboard] Error 2
huuck commented 1 year ago

Seems to be some missing resources, I'll take a look later tonight.

huuck commented 1 year ago

Forgot to deploy the assets. Got it in sync with the version I maintain from unleashed. Check again and let me know if it's ok.

hryamzik commented 1 year ago

Works now, thanks a lot!