Attributes
- Companion
- trait
- Graph
-
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
InputState.type
Members list
Type members
Classlikes
Input state at the current point in time
Input state at the current point in time
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. - mouseInput
-
the current mouse state
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait InputStateclass Objecttrait Matchableclass AnyShow all
Input state at the current point in time and in the previous frame
Input state at the current point in time and in the previous frame
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 mouse is pressed
- mouseX
-
mouse X position, from the left
- mouseY
-
mouse Y position, from the top
- previousMouseX
-
previous mouse X position, from the left
- previousMouseY
-
previous mouse Y position, from the top
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait InputStateclass Objecttrait Matchableclass AnyShow all
Mouse position and button state.
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
MouseInput.type
Inherited types
The names of the product elements
The names of the product elements
Attributes
- Inherited from:
- Mirror
The name of the type
The name of the type
Attributes
- Inherited from:
- Mirror
Value members
Concrete methods
Creates a new InputState.
Creates a new InputState.
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. - mousePosition
-
optional mouse (x, y) position, from the top-left
- mousePressed
-
whether the mouse is pressed
Attributes
Creates a new InputState.
Creates a new InputState.
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. - mousePressed
-
whether the mouse is pressed
- mouseX
-
mouse X position, from the left
- mouseY
-
mouse Y position, from the top
Attributes
Creates a new InputState with an unknown mouse position.
Creates a new InputState with an unknown mouse position.
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. - mousePressed
-
whether the mouse is pressed