wasKeyPressedRecently

fun wasKeyPressedRecently(keyCode: Int, withinMs: Long): Boolean

Checks if the specified keyboard key was pressed recently. Note: This requires manual tracking via updateKeyPress() since we don't have a keyboard event handler.

Return

True if the key was pressed within the specified time, false otherwise.

Parameters

keyCode

The GLFW key code.

withinMs

The time window in milliseconds to check within.