// declarations
// ============================================================================
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
- #pragma implementation "inpcons.h"
-#endif
-
// ----------------------------------------------------------------------------
// headers
// ----------------------------------------------------------------------------
// implementation
// ============================================================================
-wxInputConsumer::wxInputConsumer()
-{
- m_inputHandler = NULL;
-}
-
// ----------------------------------------------------------------------------
// focus/activation handling
// ----------------------------------------------------------------------------
void wxInputConsumer::OnKeyDown(wxKeyEvent& event)
{
- if ( !m_inputHandler || !m_inputHandler->HandleKey(this, event, TRUE) )
+ if ( !m_inputHandler || !m_inputHandler->HandleKey(this, event, true) )
event.Skip();
}
void wxInputConsumer::OnKeyUp(wxKeyEvent& event)
{
- if ( !m_inputHandler || !m_inputHandler->HandleKey(this, event, FALSE) )
+ if ( !m_inputHandler || !m_inputHandler->HandleKey(this, event, false) )
event.Skip();
}
{
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;
long WXUNUSED(numArg),
const wxString& WXUNUSED(strArg))
{
- return FALSE;
+ return false;
}