Skip to content

Commit 2788866

Browse files
committed
Fix input in installer
1 parent 337dbc0 commit 2788866

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

esp32/modules/installer.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,20 +61,22 @@ def start_app(pushed):
6161
selected = packages[options.selected_index()]["slug"]
6262
appglue.start_app(selected)
6363

64+
def start_launcher(pushed):
65+
if(pushed):
66+
appglue.start_app('launcher')
67+
6468
ugfx.input_init()
6569

6670
window = ugfx.Container(0, 0, ugfx.width(), ugfx.height())
6771

6872
ugfx.input_attach(ugfx.JOY_UP, show_description)
6973
ugfx.input_attach(ugfx.JOY_DOWN, show_description)
74+
7075
ugfx.input_attach(ugfx.BTN_A, woezel_it)
71-
ugfx.input_attach(ugfx.BTN_B, woezel_it)
76+
ugfx.input_attach(ugfx.BTN_B, start_launcher)
7277

7378
ugfx.input_attach(ugfx.BTN_START, start_app)
7479

75-
ugfx.input_attach(ugfx.JOY_LEFT, lambda pushed: ugfx.flush() if pushed else 0)
76-
ugfx.input_attach(ugfx.JOY_RIGHT, lambda pushed: ugfx.flush() if pushed else 0)
77-
7880
text = ugfx.Textbox(int(ugfx.width()/2),0, int(ugfx.width()/2), ugfx.height())
7981

8082
ugfx.set_lut(ugfx.LUT_FULL)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy