#include <stdio.h>
#include <string.h>
#include <stdlib.h>
-#ifdef UIQ3
+#ifdef __EPOC32__
#include <unistd.h>
#endif
#include "config.h"
#include "menu.h"
#include "emu.h"
-#include <Pico/Pico.h>
+#include <pico/pico.h>
extern menu_entry opt_entries[];
extern menu_entry opt2_entries[];
return;
}
- if (binds == currentConfig.KeyBinds && !(keys_encountered & (1<<t))) { // hack
+ // unbind old, but only when key is first encountered
+ if (t < 32 && binds == currentConfig.KeyBinds && !(keys_encountered & (1<<t))) {
binds[t] = 0;
keys_encountered |= 1<<t;
}