git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10763
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxMessageBox("No joystick detected!");
return FALSE;
}
wxMessageBox("No joystick detected!");
return FALSE;
}
m_fire.Create("gun.wav");
m_fire.Create("gun.wav");
m_maxX = stick.GetXMax();
m_maxY = stick.GetYMax();
m_maxX = stick.GetXMax();
m_maxY = stick.GetYMax();
sprintf(buf, "Joystick (%ld, %ld)", pt.x, pt.y);
frame->SetStatusText(buf);
sprintf(buf, "Joystick (%ld, %ld)", pt.x, pt.y);
frame->SetStatusText(buf);
if (event.ButtonDown() && wxGetApp().m_fire.IsOk())
{
wxGetApp().m_fire.Play();
}
if (event.ButtonDown() && wxGetApp().m_fire.IsOk())
{
wxGetApp().m_fire.Play();
}
}
BEGIN_EVENT_TABLE(MyFrame, wxFrame)
}
BEGIN_EVENT_TABLE(MyFrame, wxFrame)