KeyCharAndCode

data class KeyCharAndCode(char: Char, code: Int)

Represents a key for use in an InputListener keyTyped() handler

Example: KeyCharAndCode('R'), KeyCharAndCode(Input.Keys.F1)

Constructors

KeyCharAndCode
Link copied to clipboard
private fun KeyCharAndCode(from: KeyCharAndCode)

helper 'cloning constructor' to allow feeding both fields from a factory function

KeyCharAndCode
Link copied to clipboard
fun KeyCharAndCode(char: Char)

Map keys from a Char - will detect by keycode if one can be mapped, by character otherwise

KeyCharAndCode
Link copied to clipboard
fun KeyCharAndCode(code: Int)

express keys that only have a keyCode like F1

KeyCharAndCode
Link copied to clipboard
fun KeyCharAndCode(char: Char, code: Int)

Types

Companion
Link copied to clipboard
object Companion

Functions

component1
Link copied to clipboard
operator fun component1(): Char
component2
Link copied to clipboard
operator fun component2(): Int
copy
Link copied to clipboard
fun copy(char: Char, code: Int): KeyCharAndCode
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
toString
Link copied to clipboard
open override fun toString(): String

Properties

char
Link copied to clipboard
val char: Char
code
Link copied to clipboard
val code: Int

Sources

jvm source
Link copied to clipboard