[WinEvents] Move win32 only code into win32 file.
authorulion <ulion2002@gmail.com>
Tue, 19 Mar 2013 13:09:53 +0000 (21:09 +0800)
committerulion <ulion2002@gmail.com>
Tue, 19 Mar 2013 13:13:09 +0000 (21:13 +0800)
xbmc/windowing/WinEvents.h
xbmc/windowing/WinEventsLinux.cpp
xbmc/windowing/WinEventsSDL.cpp
xbmc/windowing/android/WinEventsAndroid.cpp
xbmc/windowing/osx/WinEventsIOS.mm
xbmc/windowing/windows/WinEventsWin32.cpp
xbmc/windowing/windows/WinEventsWin32.h

index 68ee03a..5feb800 100644 (file)
@@ -30,8 +30,6 @@ typedef bool (* PHANDLE_EVENT_FUNC)(XBMC_Event& newEvent);
 
 class CWinEventsBase
 {
-public:
-  static PHANDLE_EVENT_FUNC m_pEventFunc;
 };
 
 #if   defined(TARGET_WINDOWS)
index f199d75..b979863 100644 (file)
@@ -30,8 +30,6 @@
 #include "utils/log.h"
 #include "powermanagement/PowerManager.h"
 
-PHANDLE_EVENT_FUNC CWinEventsBase::m_pEventFunc = NULL;
-
 bool CWinEventsLinux::m_initialized = false;
 CLinuxInputDevices CWinEventsLinux::m_devices;
 
index 02ddc9b..fde4f73 100644 (file)
@@ -43,8 +43,6 @@
 #include "utils/log.h"
 #endif
 
-PHANDLE_EVENT_FUNC CWinEventsBase::m_pEventFunc = NULL;
-
 #if defined(_LINUX) && !defined(__APPLE__)
 // The following chunk of code is Linux specific. For keys that have
 // with keysym.sym set to zero it checks the scan code, and sets the sym
index eb7c507..5ef6d7a 100644 (file)
@@ -27,8 +27,6 @@
 
 static CCriticalSection g_inputCond;
 
-PHANDLE_EVENT_FUNC CWinEventsBase::m_pEventFunc = NULL;
-
 static std::list<XBMC_Event> events;
 
 void CWinEventsAndroid::DeInit()
index 0602ae8..8b6edd4 100644 (file)
@@ -30,8 +30,6 @@
 
 static CCriticalSection g_inputCond;
 
-PHANDLE_EVENT_FUNC CWinEventsBase::m_pEventFunc = NULL;
-
 static std::list<XBMC_Event> events;
 
 void CWinEventsIOS::DeInit()
index 4dedc3e..7787bf9 100644 (file)
@@ -64,7 +64,7 @@ uint32_t g_uQueryCancelAutoPlay = 0;
 
 int XBMC_TranslateUNICODE = 1;
 
-PHANDLE_EVENT_FUNC CWinEventsBase::m_pEventFunc = NULL;
+PHANDLE_EVENT_FUNC CWinEventsWin32::m_pEventFunc = NULL;
 int CWinEventsWin32::m_lastGesturePosX = 0;
 int CWinEventsWin32::m_lastGesturePosY = 0;
 
index 35d9c3e..e690362 100644 (file)
@@ -30,6 +30,7 @@ class CWinEventsWin32 : public CWinEventsBase
 public:
   static bool MessagePump();
   static LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
+  static PHANDLE_EVENT_FUNC m_pEventFunc;
 private:
   static void RegisterDeviceInterfaceToHwnd(GUID InterfaceClassGuid, HWND hWnd, HDEVNOTIFY *hDeviceNotify);
   static void WindowFromScreenCoords(HWND hWnd, POINT *point);