InputState

eu.joaocosta.interim.InputState
final case class InputState(mouseX: Int, mouseY: Int, mouseDown: Boolean, keyboardInput: String)

Input State to be used by the components.

Value parameters

keyboardInput

String generated from the keyboard inputs since the last frame. Usually this will be a single character. A \u0008 character is interpreted as a backspace.

mouseDown

whether the body is pressed

mouseX

mouse X position, from the left

mouseY

mouse Y position, from the top

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

Appends the current keyboard input to an already existing string. A \u0008 character in the input is interpreted as a backspace.

Appends the current keyboard input to an already existing string. A \u0008 character in the input is interpreted as a backspace.

Attributes

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product