]> git.tdb.fi Git - libs/gui.git/blobdiff - source/input/bindings.h
Add decorations for things which should be exported from the library
[libs/gui.git] / source / input / bindings.h
index f5a935ddffb1c0934c7772a9ece10de3352dec00..bafd3bad97f80ecc19ecbbff2bf095f6bb60ce36 100644 (file)
@@ -2,6 +2,7 @@
 #define MSP_INPUT_BINDINGS_H_
 
 #include <msp/datafile/objectloader.h>
+#include <msp/graphics/mspgui_api.h>
 #include <msp/strings/lexicalcast.h>
 #include "control.h"
 #include "device.h"
@@ -12,10 +13,10 @@ namespace Input {
 
 class ControlScheme;
 
-class Bindings
+class MSPGUI_API Bindings
 {
 public:
-       class Loader: public DataFile::ObjectLoader<Bindings>
+       class MSPGUI_API Loader: public DataFile::ObjectLoader<Bindings>
        {
        private:
                static ActionMap shared_actions;
@@ -70,7 +71,7 @@ public:
 
                std::string control;
                unsigned device = 0;
-               ControlSrcType type = NONE;
+               ControlSrcType type = NO_SOURCE;
                unsigned index = 0;
        };