Skip to content

Input & Events

This example shows how to handle input and events using PHP OpenGL. It implements all available input and window event callbacks and prints them to the console.

Input and events with OpenGL in PHP

Input and events with OpenGL in PHP

Run this example:

php examples/08_input_and_events.php