X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a290fa5a7deebe9d96c0c0089d18e27d4bd9b624..f2959820a5286e4b1595bb9c89de30fa69d6fc6a:/src/univ/inpcons.cpp diff --git a/src/univ/inpcons.cpp b/src/univ/inpcons.cpp index 8e52a895f4..c1c601cd64 100644 --- a/src/univ/inpcons.cpp +++ b/src/univ/inpcons.cpp @@ -4,7 +4,6 @@ // Author: Vadim Zeitlin // Modified by: // Created: 14.08.00 -// RCS-ID: $Id$ // Copyright: (c) 2000 SciTech Software, Inc. (www.scitechsoft.com) // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -13,10 +12,6 @@ // declarations // ============================================================================ -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) - #pragma implementation "inpcons.h" -#endif - // ---------------------------------------------------------------------------- // headers // ---------------------------------------------------------------------------- @@ -27,6 +22,10 @@ #pragma hdrstop #endif +#ifndef WX_PRECOMP + #include "wx/window.h" +#endif // WX_PRECOMP + #include "wx/univ/renderer.h" #include "wx/univ/inphand.h" #include "wx/univ/theme.h" @@ -59,9 +58,15 @@ void wxInputConsumer::OnActivate(wxActivateEvent& event) // input processing // ---------------------------------------------------------------------------- +wxInputHandler * +wxInputConsumer::DoGetStdInputHandler(wxInputHandler * WXUNUSED(handlerDef)) +{ + return NULL; +} + void wxInputConsumer::CreateInputHandler(const wxString& inphandler) { - m_inputHandler = wxTheme::Get()->GetInputHandler(inphandler); + m_inputHandler = wxTheme::Get()->GetInputHandler(inphandler, this); } void wxInputConsumer::OnKeyDown(wxKeyEvent& event) @@ -80,7 +85,8 @@ void wxInputConsumer::OnMouse(wxMouseEvent& event) { if ( m_inputHandler ) { - if ( event.Moving() || event.Entering() || event.Leaving() ) + if ( event.Moving() || event.Dragging() || + event.Entering() || event.Leaving() ) { if ( m_inputHandler->HandleMouseMove(this, event) ) return; @@ -105,4 +111,3 @@ bool wxInputConsumer::PerformAction(const wxControlAction& WXUNUSED(action), { return false; } -