Pressing build-in joystick on WinCE phones fires wxEVT_JOY_BUTTON_DOWN event.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36034 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2064,6 +2064,12 @@ bool wxWindowMSW::MSWProcessMessage(WXMSG* pMsg)
|
||||
else // no default button
|
||||
#endif // wxUSE_BUTTON
|
||||
{
|
||||
#ifdef __WXWINCE__
|
||||
wxJoystickEvent event(wxEVT_JOY_BUTTON_DOWN);
|
||||
event.SetEventObject(this);
|
||||
if(GetEventHandler()->ProcessEvent(event))
|
||||
return true;
|
||||
#endif
|
||||
// this is a quick and dirty test for a text
|
||||
// control
|
||||
if ( !(lDlgCode & DLGC_HASSETSEL) )
|
||||
@@ -6202,4 +6208,3 @@ void wxWindowMSW::OnInitDialog( wxInitDialogEvent& event )
|
||||
event.Skip();
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user