Make AddKeyMaps.mkMap() an internal function with jvm overloads.
This commit is contained in:
parent
f19de179b9
commit
b828b41354
|
@ -11,7 +11,8 @@ import org.lwjgl.glfw.GLFW.GLFW_KEY_Y
|
|||
private typealias privLambda = (() -> Unit)?
|
||||
object AddKeyMaps {
|
||||
private const val prefix = "snowy"
|
||||
private fun mkMap(translationSuffix: String, key: Int, category: String = "keycategory", lambda: privLambda = null): Pair<KeyMapping, privLambda> {
|
||||
@JvmOverloads
|
||||
internal fun mkMap(translationSuffix: String, key: Int, category: String = "keycategory", lambda: privLambda = null): Pair<KeyMapping, privLambda> {
|
||||
return KeyMapping(
|
||||
"key.$prefix.$translationSuffix", InputConstants.Type.KEYSYM,
|
||||
key, "category.$prefix.$category"
|
||||
|
|
Loading…
Reference in New Issue