Record Class InputEvent.Scrolled
java.lang.Object
java.lang.Record
dev.engine.core.input.InputEvent.Scrolled
- All Implemented Interfaces:
AxisEvent, DeviceEvent, HasModifiers, InputEvent
- Enclosing interface:
InputEvent
-
Nested Class Summary
Nested classes/interfaces inherited from interface InputEvent
InputEvent.CharTyped, InputEvent.CursorMoved, InputEvent.DeviceConnectionChanged, InputEvent.GamepadAxisMoved, InputEvent.GamepadPressed, InputEvent.GamepadReleased, InputEvent.KeyPressed, InputEvent.KeyReleased, InputEvent.KeyRepeated, InputEvent.MousePressed, InputEvent.MouseReleased, InputEvent.Scrolled -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondevice()Returns the value of thedevicerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themodifiersrecord component.source()time()Returns the value of thetimerecord component.final StringtoString()Returns a string representation of this record class.doublex()Returns the value of thexrecord component.doubley()Returns the value of theyrecord component.
-
Constructor Details
-
Scrolled
Creates an instance of aScrolledrecord class.- Parameters:
time- the value for thetimerecord componentdevice- the value for thedevicerecord componentmodifiers- the value for themodifiersrecord componentx- the value for thexrecord componenty- the value for theyrecord component
-
-
Method Details
-
source
-
toString
-
hashCode
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
time
Returns the value of thetimerecord component.- Specified by:
timein interfaceInputEvent- Returns:
- the value of the
timerecord component
-
device
Returns the value of thedevicerecord component.- Specified by:
devicein interfaceDeviceEvent- Returns:
- the value of the
devicerecord component
-
modifiers
Returns the value of themodifiersrecord component.- Specified by:
modifiersin interfaceHasModifiers- Returns:
- the value of the
modifiersrecord component
-
x
-
y
-