Skip to content

Commit 5e725be

Browse files
committed
Use submenu orientation function only in case of unleashed firmware
1 parent 3826cb3 commit 5e725be

File tree

6 files changed

+49
-3
lines changed

6 files changed

+49
-3
lines changed

docs/README.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
## flipper-xremote
2+
Advanced IR Remote App for Flipper Device
3+
4+
## About
5+
Navigation to the menu to press each button individually can be often uncomfortable because it requires scrolling to the desired button and selecting it. The idea behind XRemote is that all physical buttons are pre-mapped to specific category buttons, and a physical button directly sends an infrared signal. This allows the flipper device to be used as a remote rather than as a tool that has a remote.
6+
7+
XRemote also introduces a more user-friendly learning approach. Instead of having to manually name each button on the flipper when cloning a remote, the learning tool informs you upfront which buttons it will record. All you need to do is press the corresponding button on your existing remote, eliminating the need to name them individually.
8+
9+
The application is compatible with standard .ir files. However, to ensure functionality, names within these files must align with the predefined naming scheme. If the button is not highlighted when pressed or the notification LED does not light up, the button with the appropriate name cannot be found in the file.
10+
11+
## Button schema
12+
Button name | Description
13+
------------|-------------------
14+
Power | Power
15+
Setup | Setup/Settings
16+
Input | Input/Source
17+
Menu | Menu
18+
List | List
19+
Info | Info
20+
Mode | Mode
21+
Back | Back
22+
Ok | Enter/Ok
23+
Up | Up
24+
Down | Down
25+
Left | Left
26+
Right | Right
27+
Mute | Mute
28+
Vol_up | Volume up
29+
Vol_dn | Volume down
30+
Ch_next | Next channel
31+
Ch_prev | Previous channel
32+
Next | Jump forward
33+
Prev | Jump backward
34+
Fast_fo | Fast forward
35+
Fast_ba | Fast backward
36+
Play_pa | Play/Pause
37+
Pause | Pause
38+
Play | Play
39+
Stop | Stop
40+

screens/horizontal/screen6.png

2.26 KB
Loading

screens/horizontal/screen7.png

-498 Bytes
Loading

screens/horizontal/screen8.png

-1.76 KB
Binary file not shown.

xremote.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010

1111
#define XREMOTE_VERSION_MAJOR 1
1212
#define XREMOTE_VERSION_MINOR 0
13-
#define XREMOTE_BUILD_NUMBER 1
13+
#define XREMOTE_BUILD_NUMBER 2
1414

1515
void xremote_get_version(char* version, size_t length);

xremote_app.c

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,11 +222,17 @@ void xremote_app_submenu_alloc(XRemoteApp* app, uint32_t index, ViewNavigationCa
222222
app->submenu_id = index;
223223

224224
XRemoteAppSettings* settings = app->app_ctx->app_settings;
225+
View* view = submenu_get_view(app->submenu);
226+
view_set_previous_callback(view, prev_cb);
227+
228+
#ifdef FW_ORIGIN_Unleashed
225229
submenu_set_orientation(app->submenu, settings->orientation);
226-
view_set_previous_callback(submenu_get_view(app->submenu), prev_cb);
230+
#else
231+
view_set_orientation(view, settings->orientation);
232+
#endif
227233

228234
ViewDispatcher* view_disp = app->app_ctx->view_dispatcher;
229-
view_dispatcher_add_view(view_disp, app->submenu_id, submenu_get_view(app->submenu));
235+
view_dispatcher_add_view(view_disp, app->submenu_id, view);
230236
}
231237

232238
void xremote_app_submenu_free(XRemoteApp* app) {

0 commit comments

Comments
 (0)