File tree 1 file changed +1
-14
lines changed
1 file changed +1
-14
lines changed Original file line number Diff line number Diff line change 10
10
#define MAX_X 16
11
11
#define MAX_Y 8
12
12
13
- // End the game but don't quit the app
14
- // TODO: Figure out whether this actually needs to be here. What should happen when the player presses Back during gameplay?
15
- static void bomber_app_stop_playing (BomberAppState * state ) {
16
- FURI_LOG_I (TAG , "Stop playing" );
17
- bomber_app_set_mode (state , BomberAppMode_Finished );
18
- }
19
-
20
13
// Quit the app
21
14
static void bomber_app_quit (BomberAppState * state ) {
22
15
FURI_LOG_I (TAG , "Quitting" );
@@ -245,12 +238,6 @@ static bool handle_game_input(BomberAppState* state, InputEvent input) {
245
238
case InputKeyLeft :
246
239
case InputKeyRight :
247
240
return handle_game_direction (state , input );
248
- case InputKeyBack :
249
- if (state -> mode == BomberAppMode_Playing ) {
250
- bomber_app_stop_playing (state );
251
- return true;
252
- }
253
- break ;
254
241
default :
255
242
break ;
256
243
}
@@ -264,7 +251,7 @@ static bool handle_game_input(BomberAppState* state, InputEvent input) {
264
251
// input: Represents the input event
265
252
// returns: true if the viewport should be updated, else false
266
253
static bool bomber_app_handle_input (BomberAppState * state , InputEvent input ) {
267
- if (input .type == InputTypeLong && input . key == InputKeyBack ) {
254
+ if (input .key == InputKeyBack ) {
268
255
bomber_app_quit (state );
269
256
return false; // don't try to update the UI while quitting
270
257
}
You can’t perform that action at this time.
0 commit comments