added kubo_state_wall_new

This commit is contained in:
Luka Jankovic 2025-09-27 16:42:59 +02:00
parent fb8ff21666
commit c3973ae02b
9 changed files with 96 additions and 26 deletions

View file

@ -17,3 +17,20 @@
*/
#include "kubo_state_normal.h"
#include "../kubo_context.h"
void kubo_state_normal_entered(void *context_data) { (void)context_data; }
void kubo_state_normal_key(void *context_data, int key_code) {
struct kubo_context *context = (struct kubo_context *)context_data;
switch (key_code) {
case KEY_W:
kubo_context_set_state(context, KUBO_CONTEXT_WALL_NEW);
break;
case KEY_S:
kubo_context_set_state(context, KUBO_CONTEXT_WALL_SELECT);
break;
}
}