I am building a 3D level editor and trying to create a GtkGLArea with the ability to react to keyboard key presses, but cannot find anything useful in the documentation.
When searching around the web, I found the following functions:
- g_signal_handler_connect(gtk_gesture_click_new(), “pressed”, G_CALLBACK(SceneViewOnKeyPress), 0)
- gtk_widget_add_events(sceneView, GDK_KEY_PRESS_MASK | GDK_KEY_RELEASE_MASK)
- g_signal_connect(sceneView, “key_press_event”, G_CALLBACK(SceneViewOnKeyPress), 0)
Unfortunately, these functions are either unexistant in GTK4 or simply do not work.
Can someone help me?