// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(__APPLE__)
#pragma implementation
#pragma interface
#endif
void ScanCodeCtrl::OnKeyDown( wxKeyEvent& event )
{ wxString buf;
- buf.Printf( "0x%04x", event.KeyCode() );
+ buf.Printf( "0x%04x", event.GetKeyCode() );
SetValue( buf );
}
void TestGLCanvas::OnKeyDown( wxKeyEvent& event )
{
- long evkey = event.KeyCode();
+ long evkey = event.GetKeyCode();
if (evkey == 0) return;
if (!m_TimeInitialized)