Experimental support for Shift handling.

This commit is contained in:
Daiki Ueno
2010-06-04 18:15:14 +09:00
parent da031a7019
commit 0733f11105
6 changed files with 182 additions and 33 deletions

View File

@ -24,6 +24,11 @@
#include "eek-keysym.h"
#include <string.h>
#define DEBUG 0
#if DEBUG
#include <stdio.h>
#endif
enum {
PROP_0,
PROP_NAME,
@ -76,6 +81,17 @@ eek_simple_key_real_set_keysyms (EekKey *self,
memcpy (priv->keysyms, keysyms, groups * levels * sizeof(guint));
priv->num_groups = groups;
priv->num_levels = levels;
#if DEBUG
{
gint i;
fprintf (stderr, "%s: ", priv->name);
for (i = 0; i < groups * levels; i++)
fprintf (stderr, "\"%s\" ", eek_keysym_to_string (keysyms[i]));
fprintf (stderr, "\n");
}
#endif
}
static gint