matchesKey

fun matchesKey(scanCode: Int): Boolean

Determines if the specified key matches the bound key.

An unbound key never matches, because InputConstants.UNKNOWN is scan code 0, the value SDL reports for keys it cannot map.

Return

True if the SDL scan code matches the bound key, false otherwise.

Parameters

scanCode

The scan code to check.