Record Class InputEvent.GamepadAxisMoved
java.lang.Object
java.lang.Record
dev.engine.core.input.InputEvent.GamepadAxisMoved
- All Implemented Interfaces:
AxisEvent, DeviceEvent, HasModifiers, InputEvent
- Enclosing interface:
InputEvent
public static record InputEvent.GamepadAxisMoved(Time time, DeviceId device, GamepadAxis axis, double x, double y)
extends Record
implements AxisEvent
-
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
ConstructorsConstructorDescriptionGamepadAxisMoved(Time time, DeviceId device, GamepadAxis axis, double x, double y) Creates an instance of aGamepadAxisMovedrecord class. -
Method Summary
Modifier and TypeMethodDescriptionaxis()Returns the value of theaxisrecord component.device()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.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
-
GamepadAxisMoved
Creates an instance of aGamepadAxisMovedrecord class.- Parameters:
time- the value for thetimerecord componentdevice- the value for thedevicerecord componentaxis- the value for theaxisrecord componentx- the value for thexrecord componenty- the value for theyrecord component
-
-
Method Details
-
source
-
modifiers
- Specified by:
modifiersin interfaceHasModifiers
-
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
-
axis
Returns the value of theaxisrecord component.- Returns:
- the value of the
axisrecord component
-
x
-
y
-