X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/788233da909b0f6bc684a99200c614e3dee2aa20..60c0a8dbf449725ab81a0b26ca2538625c81c359:/samples/opengl/cube/cube.cpp diff --git a/samples/opengl/cube/cube.cpp b/samples/opengl/cube/cube.cpp index 2172b9472c..cf6c3818d9 100644 --- a/samples/opengl/cube/cube.cpp +++ b/samples/opengl/cube/cube.cpp @@ -78,7 +78,7 @@ ScanCodeCtrl::ScanCodeCtrl( wxWindow* parent, wxWindowID id, int code, void ScanCodeCtrl::OnKeyDown( wxKeyEvent& event ) { wxString buf; - buf.Printf( "0x%04x", event.KeyCode() ); + buf.Printf( "0x%04x", event.GetKeyCode() ); SetValue( buf ); } @@ -357,7 +357,7 @@ void TestGLCanvas::Action( long code, unsigned long lasttime, void TestGLCanvas::OnKeyDown( wxKeyEvent& event ) { - long evkey = event.KeyCode(); + long evkey = event.GetKeyCode(); if (evkey == 0) return; if (!m_TimeInitialized)