src/Graphics/Input.hh
branchnew_graphics
changeset 416 38cba347a3a9
parent 414 cede5463b845
--- a/src/Graphics/Input.hh	Thu Jan 22 00:13:53 2009 +0200
+++ b/src/Graphics/Input.hh	Thu Jan 22 00:28:26 2009 +0200
@@ -5,6 +5,7 @@
 #include "../Timer.hh"
 #include "../Types.hh"
 
+#include <ClanLib/signals.h>
 #include <ClanLib/Display/input_device.h>
 #include <ClanLib/Display/keys.h>
 
@@ -198,6 +199,11 @@
          * Are we enabled or not?
          */
         bool _enabled;
+
+        /**
+         * The keyevent signal
+         */
+        CL_Signal_v2<BitMaskType, TimeMS> _sig_input;
     
     public:
         /**
@@ -249,6 +255,11 @@
          * Current enable/disable state
          */
         bool enabled (void) const { return _enabled; }
+
+        /**
+         * This signal is triggered whenever there is nonzero input, or when the input goes to zero
+         */
+        CL_Signal_v2<BitMaskType, TimeMS>& sig_input (void) { return _sig_input; }
 };
 
 /**
@@ -301,7 +312,6 @@
 
 
 
-
 /*
  * Public template class method definitions
  */