java.lang.Object
java.lang.Record
technology.sola.engine.input.MouseWheelEvent
- Record Components:
isUp
- true if the mouse wheel was moved upisDown
- true if the mouse wheel was moved downisLeft
- true if the mouse wheel was moved leftisRight
- true if the mouse wheel was moved right
@NullMarked
public record MouseWheelEvent(boolean isUp, boolean isDown, boolean isLeft, boolean isRight)
extends Record
MouseWheelEvent is an event object containing information about an interaction with the mouse wheel.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final MouseWheelEvent
MouseWheelEvent to represent when no interaction with the mouse wheel has taken place. -
Constructor Summary
ConstructorsConstructorDescriptionMouseWheelEvent
(boolean isUp, boolean isDown, boolean isLeft, boolean isRight) Creates an instance of aMouseWheelEvent
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.boolean
isDown()
Returns the value of theisDown
record component.boolean
isLeft()
Returns the value of theisLeft
record component.boolean
isRight()
Returns the value of theisRight
record component.boolean
isUp()
Returns the value of theisUp
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
NONE
MouseWheelEvent to represent when no interaction with the mouse wheel has taken place.
-
-
Constructor Details
-
MouseWheelEvent
public MouseWheelEvent(boolean isUp, boolean isDown, boolean isLeft, boolean isRight) Creates an instance of aMouseWheelEvent
record class.
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with '=='. -
isUp
public boolean isUp()Returns the value of theisUp
record component.- Returns:
- the value of the
isUp
record component
-
isDown
public boolean isDown()Returns the value of theisDown
record component.- Returns:
- the value of the
isDown
record component
-
isLeft
public boolean isLeft()Returns the value of theisLeft
record component.- Returns:
- the value of the
isLeft
record component
-
isRight
public boolean isRight()Returns the value of theisRight
record component.- Returns:
- the value of the
isRight
record component
-