Skip to content
This repository
Browse code

[win32] implement CWinEventsWin32::MessagePush

  • Loading branch information...
commit 84cdb08feb2e822ee5b1f210a900ae202010b4bb 1 parent d106ccb
Sascha Montellese authored March 07, 2013
10  xbmc/windowing/windows/WinEventsWin32.cpp
@@ -355,6 +355,16 @@ static XBMC_keysym *TranslateKey(WPARAM vkey, UINT scancode, XBMC_keysym *keysym
355 355
   return(keysym);
356 356
 }
357 357
 
  358
+void CWinEventsWin32::MessagePush(XBMC_Event *newEvent)
  359
+{
  360
+  // m_pEventFunc should be set because MessagePush is only executed by
  361
+  // methods called from WndProc()
  362
+  if (m_pEventFunc == NULL)
  363
+    return;
  364
+
  365
+  m_pEventFunc(*newEvent);
  366
+}
  367
+
358 368
 bool CWinEventsWin32::MessagePump()
359 369
 {
360 370
   MSG  msg;
1  xbmc/windowing/windows/WinEventsWin32.h
@@ -28,6 +28,7 @@
28 28
 class CWinEventsWin32 : public CWinEventsBase
29 29
 {
30 30
 public:
  31
+  static void MessagePush(XBMC_Event *newEvent);
31 32
   static bool MessagePump();
32 33
   static LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
33 34
   static PHANDLE_EVENT_FUNC m_pEventFunc;

0 notes on commit 84cdb08

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