add space key support on Windows
authorVincent Torri <vincent.torri@gmail.com>
Sun, 16 Jan 2011 18:48:08 +0000 (18:48 +0000)
committerVincent Torri <vincent.torri@gmail.com>
Sun, 16 Jan 2011 18:48:08 +0000 (18:48 +0000)
SVN revision: 56196

legacy/ecore/src/lib/ecore_win32/ecore_win32_event.c
legacy/ecore/src/lib/ecore_wince/ecore_wince_event.c

index 3bca213..ed467d3 100644 (file)
@@ -798,6 +798,10 @@ _ecore_win32_event_keystroke_get(int    key,
            kc = "KP_Delete";
          }
        break;
+     case VK_SPACE:
+       kn = "space";
+       ks = "space";
+       kc = "space";
      case VK_F1:
        kn = "F1";
        ks = "F1";
@@ -986,6 +990,11 @@ _ecore_win32_event_char_get(int    key,
        strncpy(ks, "Escape", 32);
        strncpy(kc, "Escape", 32);
        break;
+     case VK_SPACE:
+       strncpy(kn, "space", 32);
+       strncpy(ks, "space", 32);
+       strncpy(kc, "space", 32);
+       break;
      default:
        /* displayable characters */
        printf (" * key : %d\n", key);
index b1a2a2f..bbab07f 100644 (file)
@@ -123,6 +123,11 @@ _ecore_wince_event_keystroke_get(int    key,
        ks = "Delete";
        kc = "Delete";
        break;
+     case VK_SPACE:
+       kn = "space";
+       ks = "space";
+       kc = "space";
+       break;
      case VK_F1:
        kn = "F1";
        ks = "F1";
@@ -329,6 +334,11 @@ _ecore_wince_event_char_get(int    key,
        strncpy(ks, "Escape", 32);
        strncpy(kc, "Escape", 32);
        break;
+     case VK_SPACE:
+       strncpy(kn, "space", 32);
+       strncpy(ks, "space", 32);
+       strncpy(kc, "space", 32);
+       break;
      default:
        /* displayable characters */
        printf (" * key : %d\n", key);