Skip to content
This repository
Browse code

Merge pull request #3059 from Fice/key_exposure

Expose ACTION_FOO, ICON_TYPE_FOO and KEY_CODE_FOO to addons
  • Loading branch information...
commit 4e5a987774fe2b498c1acd091fca8e3b1b4ef26d 2 parents 147d010 + bd240b7
authored October 06, 2013
4  xbmc/guilib/Key.h
@@ -368,6 +368,8 @@
368 368
 #define ICON_TYPE_WEATHER       107
369 369
 #define ICON_TYPE_SETTINGS      109
370 370
 
  371
+#ifndef SWIG
  372
+
371 373
 class CKey;
372 374
 
373 375
 /*!
@@ -522,5 +524,7 @@ class CKey
522 524
   float m_repeat; // time since last keypress
523 525
   bool m_fromService;
524 526
 };
  527
+#endif //undef SWIG
  528
+
525 529
 #endif
526 530
 
2  xbmc/interfaces/swig/AddonModuleXbmcgui.i
@@ -28,6 +28,7 @@
28 28
 #include "interfaces/legacy/WindowDialog.h"
29 29
 #include "interfaces/legacy/Dialog.h"
30 30
 #include "interfaces/legacy/WindowXML.h"
  31
+#include "guilib/Key.h"
31 32
 
32 33
 using namespace XBMCAddon;
33 34
 using namespace xbmcgui;
@@ -175,3 +176,4 @@ using namespace xbmcgui;
175 176
 
176 177
 %include "interfaces/legacy/WindowXML.h"
177 178
 
  179
+%include "guilib/Key.h"

0 notes on commit 4e5a987

Please sign in to comment.
Something went wrong with that request. Please try again.