final fixes for UIQ3
authornotaz <notasas@gmail.com>
Sun, 24 Aug 2008 13:26:57 +0000 (13:26 +0000)
committernotaz <notasas@gmail.com>
Sun, 24 Aug 2008 13:26:57 +0000 (13:26 +0000)
git-svn-id: file:///home/notaz/opt/svn/PicoDrive/platform@573 be3aeb3a-fb24-0410-a615-afba39da0efa

common/config.c

index a621893..c530c95 100644 (file)
@@ -729,7 +729,8 @@ static void keys_parse(const char *var, const char *val, int binds[32],
                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;
        }