File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -61,20 +61,22 @@ def start_app(pushed):
61
61
selected = packages [options .selected_index ()]["slug" ]
62
62
appglue .start_app (selected )
63
63
64
+ def start_launcher (pushed ):
65
+ if (pushed ):
66
+ appglue .start_app ('launcher' )
67
+
64
68
ugfx .input_init ()
65
69
66
70
window = ugfx .Container (0 , 0 , ugfx .width (), ugfx .height ())
67
71
68
72
ugfx .input_attach (ugfx .JOY_UP , show_description )
69
73
ugfx .input_attach (ugfx .JOY_DOWN , show_description )
74
+
70
75
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 )
72
77
73
78
ugfx .input_attach (ugfx .BTN_START , start_app )
74
79
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
-
78
80
text = ugfx .Textbox (int (ugfx .width ()/ 2 ),0 , int (ugfx .width ()/ 2 ), ugfx .height ())
79
81
80
82
ugfx .set_lut (ugfx .LUT_FULL )
You can’t perform that action at this time.
0 commit comments