samples: Tweaks
authorJerome St-Louis <jerome@ecere.com>
Tue, 4 Jun 2013 14:33:57 +0000 (10:33 -0400)
committerJerome St-Louis <jerome@ecere.com>
Tue, 4 Jun 2013 16:06:03 +0000 (12:06 -0400)
samples/guiAndGfx/slideShow/eShow.ec
samples/guiAndGfx/slideShow/eShow.epj
samples/guiAndGfx/snow/snow.epj

index a0bafdf..521c7fb 100644 (file)
@@ -134,15 +134,23 @@ class SlideShow : Window
       }
    }
 
-   bool OnKeyDown(Key key, unichar ch)
+   bool OnKeyHit(Key key, unichar ch)
    {
       switch(key)
       {
-         case escape: Destroy(0); break;
          case left: NextImage(-2); break;
          case right: NextImage(2); break;
          case pageDown: case down: NextImage(1); break;
          case pageUp: case up: NextImage(-1); break;
+      }
+      return true;
+   }
+
+   bool OnKeyDown(Key key, unichar ch)
+   {
+      switch(key)
+      {
+         case escape: Destroy(0); break;
          case space: direction ^=1; if(direction) timer.Start(); else timer.Stop(); break;
          case home: fileName = fileNames.first; NextImage(0); break;
          case end: fileName = fileNames.last; NextImage(0); break;
index 93a405a..f5ab8bd 100644 (file)
    },
    "Configurations" : [
       {
-         "Name" : "Default"
+         "Name" : "Default",
+         "Options" : {
+            "Optimization" : "Speed"
+         }
       }
    ],
    "Files" : [
index f019642..e123a96 100644 (file)
       ],
       "Console" : false
    },
+   "Platforms" : [
+      {
+         "Name" : "linux",
+         "Options" : {
+            "Libraries" : [
+               "X11"
+            ]
+         }
+      }
+   ],
    "Configurations" : [
       {
          "Name" : "Release",