Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[win32] implement CWinEventsWin32::MessagePush

  • Loading branch information...
commit 84cdb08feb2e822ee5b1f210a900ae202010b4bb 1 parent d106ccb
@Montellese Montellese authored
View
10 xbmc/windowing/windows/WinEventsWin32.cpp
@@ -355,6 +355,16 @@ static XBMC_keysym *TranslateKey(WPARAM vkey, UINT scancode, XBMC_keysym *keysym
return(keysym);
}
+void CWinEventsWin32::MessagePush(XBMC_Event *newEvent)
+{
+ // m_pEventFunc should be set because MessagePush is only executed by
+ // methods called from WndProc()
+ if (m_pEventFunc == NULL)
+ return;
+
+ m_pEventFunc(*newEvent);
+}
+
bool CWinEventsWin32::MessagePump()
{
MSG msg;
View
1  xbmc/windowing/windows/WinEventsWin32.h
@@ -28,6 +28,7 @@
class CWinEventsWin32 : public CWinEventsBase
{
public:
+ static void MessagePush(XBMC_Event *newEvent);
static bool MessagePump();
static LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
static PHANDLE_EVENT_FUNC m_pEventFunc;
Please sign in to comment.
Something went wrong with that request. Please try again.