X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/12a3f2275c94a345cf83abf5151db68391859623..2d611b5cf26c2b16ba3a7d91d79d06e759be2b3d:/samples/opengl/cube/cube.cpp?ds=sidebyside diff --git a/samples/opengl/cube/cube.cpp b/samples/opengl/cube/cube.cpp index 7bab5df213..cf6c3818d9 100644 --- a/samples/opengl/cube/cube.cpp +++ b/samples/opengl/cube/cube.cpp @@ -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)