@@ -71,65 +71,66 @@ bool desktop_main_input_callback(InputEvent* event, void* context) {
71
71
} else if (event -> key == InputKeyLeft ) {
72
72
main_view -> callback (DesktopMainEventOpenFavoritePrimary , main_view -> context );
73
73
} else if (event -> key == InputKeyRight ) {
74
+ // Right key is handled by animation manager
75
+ // GOES TO PASSPORT NO MATTER WHAT
76
+ // THIS DOESNT WORK, PASSPORT WILL ONLY OPEN ON REGULAR RIGHT, NOTHING CAN GET ASSIGNED HERE
74
77
main_view -> callback (DesktopMainEventOpenPassport , main_view -> context );
75
78
}
76
79
} else if (event -> type == InputTypeLong ) {
77
80
if (event -> key == InputKeyOk ) {
78
81
main_view -> callback (DesktopAnimationEventNewIdleAnimation , main_view -> context );
79
82
} else if (event -> key == InputKeyUp ) {
80
- // main_view->callback(DesktopMainEventOpenFavoriteGame , main_view->context);
83
+ main_view -> callback (DesktopMainEventOpenDOOM , main_view -> context ); // OPENS DOOM
81
84
} else if (event -> key == InputKeyDown ) {
82
- // main_view->callback(DesktopMainEventOpenGames, main_view->context);
83
- main_view -> callback (DesktopMainEventOpenDebug , main_view -> context );
85
+ main_view -> callback (DesktopMainEventOpenZombiez , main_view -> context ); // OPENS Zombiez
84
86
} else if (event -> key == InputKeyLeft ) {
85
87
main_view -> callback (DesktopMainEventOpenFavoriteSecondary , main_view -> context );
86
- } else if (event -> key == InputKeyRight ) {
87
- // THIS DOESNT WORK
88
88
}
89
89
}
90
90
} else if (main_view -> is_gamemode == true) {
91
91
if (event -> type == InputTypeShort ) {
92
92
if (event -> key == InputKeyOk ) {
93
- // main_view->callback(DesktopMainEventOpenGames, main_view->context);
94
- main_view -> callback (DesktopMainEventOpenGameMenu , main_view -> context ); // OPENS SNAKE
93
+ main_view -> callback (DesktopMainEventOpenDice , main_view -> context ); // OPENS Dice
95
94
} else if (event -> key == InputKeyUp ) {
96
- // main_view->callback(DesktopMainEventOpenFavoriteGame, main_view->context);
97
- main_view -> callback (DesktopMainEventOpenGameMenu , main_view -> context ); // OPENS SNAKE
95
+ main_view -> callback (DesktopMainEventOpenSnake , main_view -> context ); // OPENS SNAKE
98
96
} else if (event -> key == InputKeyDown ) {
99
97
// PREFER TO OPEN GAMES MENU
100
- main_view -> callback (DesktopMainEventOpenGameMenu , main_view -> context ); // OPENS SNAKE
98
+ main_view -> callback (DesktopMainEventOpen2048 , main_view -> context ); // OPENS 2048
101
99
} else if (event -> key == InputKeyLeft ) {
102
100
main_view -> callback (DesktopMainEventOpenClock , main_view -> context );
103
- } else if (event -> key == InputKeyRight ) {
104
- // GOES TO PASSPORT NO MATTER WHAT
105
101
}
106
102
} else if (event -> type == InputTypeLong ) {
107
103
if (event -> key == InputKeyOk ) {
108
104
main_view -> callback (DesktopAnimationEventNewIdleAnimation , main_view -> context );
109
105
} else if (event -> key == InputKeyUp ) {
110
- // main_view->callback(DesktopMainEventOpenFavoriteGame, main_view->context);
111
- main_view -> callback (DesktopMainEventOpenGameMenu , main_view -> context ); // OPENS SNAKE
106
+ main_view -> callback (DesktopMainEventOpenDOOM , main_view -> context ); // OPENS DOOM
112
107
} else if (event -> key == InputKeyDown ) {
113
- // main_view->callback(DesktopMainEventOpenGames, main_view->context);
114
- main_view -> callback (DesktopMainEventOpenGameMenu , main_view -> context ); // OPENS SNAKE
108
+ main_view -> callback (DesktopMainEventOpenZombiez , main_view -> context ); // OPENS Zombiez
115
109
} else if (event -> key == InputKeyLeft ) {
116
- main_view -> callback (DesktopMainEventOpenClock , main_view -> context );
117
- } else if (event -> key == InputKeyRight ) {
118
- // THIS DOESNT WORK, PASSPORT WILL ONLY OPEN ON REGULAR RIGHT, NOTHING CAN GET ASSIGNED HERE
110
+ main_view -> callback (DesktopMainEventOpenTetris , main_view -> context ); // OPENS TETRIS
119
111
}
120
112
}
121
113
} else {
122
114
if (event -> type == InputTypeShort ) {
123
115
if (event -> key == InputKeyOk ) {
124
- main_view -> callback (DesktopMainEventOpenGameMenu , main_view -> context ); // OPENS SNAKE
116
+ main_view -> callback (DesktopMainEventOpenDice , main_view -> context ); // OPENS Dice
125
117
} else if (event -> key == InputKeyUp ) {
126
118
main_view -> callback (DesktopMainEventOpenLockMenu , main_view -> context );
127
119
} else if (event -> key == InputKeyDown ) {
128
- main_view -> callback (DesktopMainEventOpenPassport , main_view -> context );
120
+ main_view -> callback (DesktopMainEventOpen2048 , main_view -> context ); // OPENS 2048
129
121
} else if (event -> key == InputKeyLeft ) {
130
122
main_view -> callback (DesktopMainEventOpenPassport , main_view -> context );
131
123
}
132
- // Right key is handled by animation manager
124
+ } else if (event -> type == InputTypeLong ) {
125
+ if (event -> key == InputKeyOk ) {
126
+ main_view -> callback (DesktopAnimationEventNewIdleAnimation , main_view -> context );
127
+ } else if (event -> key == InputKeyUp ) {
128
+ main_view -> callback (DesktopMainEventOpenSnake , main_view -> context ); // OPENS SNAKE
129
+ } else if (event -> key == InputKeyDown ) {
130
+ main_view -> callback (DesktopMainEventOpenTetris , main_view -> context ); // OPENS TETRIS
131
+ } else if (event -> key == InputKeyLeft ) {
132
+ main_view -> callback (DesktopMainEventOpenClock , main_view -> context );
133
+ }
133
134
}
134
135
}
135
136
0 commit comments