Uses of Record Class
club.doki7.sdl3.handle.SDL_Joystick
Packages that use SDL_Joystick
-
Uses of SDL_Joystick in club.doki7.sdl3
Methods in club.doki7.sdl3 that return SDL_JoystickModifier and TypeMethodDescriptionSDL3.getGamepadJoystick
(@Nullable SDL_Gamepad gamepad) Get the underlying joystick from a gamepad.SDL3.getJoystickFromID
(int instance_id) Get the SDL_Joystick associated with an instance ID, if it has been opened.SDL3.getJoystickFromPlayerIndex
(int player_index) Get the SDL_Joystick associated with a player index.SDL3.openJoystick
(int instance_id) Open a joystick for use.Methods in club.doki7.sdl3 with parameters of type SDL_JoystickModifier and TypeMethodDescriptionvoid
SDL3.closeJoystick
(@Nullable SDL_Joystick joystick) Close a joystick previously opened with SDL_OpenJoystick().short
SDL3.getJoystickAxis
(@Nullable SDL_Joystick joystick, int axis) Get the current state of an axis control on a joystick.boolean
SDL3.getJoystickAxisInitialState
(@Nullable SDL_Joystick joystick, int axis, @Nullable ShortPtr state) Get the initial state of an axis control on a joystick.boolean
SDL3.getJoystickBall
(@Nullable SDL_Joystick joystick, int ball, @Nullable IntPtr dx, @Nullable IntPtr dy) Get the ball axis change since the last poll.boolean
SDL3.getJoystickButton
(@Nullable SDL_Joystick joystick, int button) Get the current state of a button on a joystick.int
SDL3.getJoystickConnectionState
(@Nullable SDL_Joystick joystick) Get the connection state of a joystick.short
SDL3.getJoystickFirmwareVersion
(@Nullable SDL_Joystick joystick) Get the firmware version of an opened joystick, if available.SDL3.getJoystickGUID
(@Nullable SDL_Joystick joystick) Get the implementation-dependent GUID for the joystick.byte
SDL3.getJoystickHat
(@Nullable SDL_Joystick joystick, int hat) Get the current state of a POV hat on a joystick.int
SDL3.getJoystickID
(@Nullable SDL_Joystick joystick) Get the instance ID of an opened joystick.SDL3.getJoystickName
(@Nullable SDL_Joystick joystick) Get the implementation dependent name of a joystick.SDL3.getJoystickPath
(@Nullable SDL_Joystick joystick) Get the implementation dependent path of a joystick.int
SDL3.getJoystickPlayerIndex
(@Nullable SDL_Joystick joystick) Get the player index of an opened joystick.int
SDL3.getJoystickPowerInfo
(@Nullable SDL_Joystick joystick, @Nullable IntPtr percent) Get the battery state of a joystick.short
SDL3.getJoystickProduct
(@Nullable SDL_Joystick joystick) Get the USB product ID of an opened joystick, if available.short
SDL3.getJoystickProductVersion
(@Nullable SDL_Joystick joystick) Get the product version of an opened joystick, if available.int
SDL3.getJoystickProperties
(@Nullable SDL_Joystick joystick) Get the properties associated with a joystick.SDL3.getJoystickSerial
(@Nullable SDL_Joystick joystick) Get the serial number of an opened joystick, if available.int
SDL3.getJoystickType
(@Nullable SDL_Joystick joystick) Get the type of an opened joystick.short
SDL3.getJoystickVendor
(@Nullable SDL_Joystick joystick) Get the USB vendor ID of an opened joystick, if available.int
SDL3.getNumJoystickAxes
(@Nullable SDL_Joystick joystick) Get the number of general axis controls on a joystick.int
SDL3.getNumJoystickBalls
(@Nullable SDL_Joystick joystick) Get the number of trackballs on a joystick.int
SDL3.getNumJoystickButtons
(@Nullable SDL_Joystick joystick) Get the number of buttons on a joystick.int
SDL3.getNumJoystickHats
(@Nullable SDL_Joystick joystick) Get the number of POV hats on a joystick.boolean
SDL3.isJoystickHaptic
(@Nullable SDL_Joystick joystick) Query if a joystick has haptic features.boolean
SDL3.joystickConnected
(@Nullable SDL_Joystick joystick) Get the status of a specified joystick.SDL3.openHapticFromJoystick
(@Nullable SDL_Joystick joystick) Open a haptic device for use from a joystick device.boolean
SDL3.rumbleJoystick
(@Nullable SDL_Joystick joystick, short low_frequency_rumble, short high_frequency_rumble, int duration_ms) Start a rumble effect.boolean
SDL3.rumbleJoystickTriggers
(@Nullable SDL_Joystick joystick, short left_rumble, short right_rumble, int duration_ms) Start a rumble effect in the joystick's triggers.boolean
SDL3.sendJoystickEffect
(@Nullable SDL_Joystick joystick, MemorySegment data, int size) Send a joystick specific effect packet.boolean
SDL3.sendJoystickVirtualSensorData
(@Nullable SDL_Joystick joystick, int type, long sensor_timestamp, @Nullable FloatPtr data, int num_values) Send a sensor update for an opened virtual joystick.boolean
SDL3.setJoystickLED
(@Nullable SDL_Joystick joystick, byte red, byte green, byte blue) Update a joystick's LED color.boolean
SDL3.setJoystickPlayerIndex
(@Nullable SDL_Joystick joystick, int player_index) Set the player index of an opened joystick.boolean
SDL3.setJoystickVirtualAxis
(@Nullable SDL_Joystick joystick, int axis, short value) Set the state of an axis on an opened virtual joystick.boolean
SDL3.setJoystickVirtualBall
(@Nullable SDL_Joystick joystick, int ball, short xrel, short yrel) Generate ball motion on an opened virtual joystick.boolean
SDL3.setJoystickVirtualButton
(@Nullable SDL_Joystick joystick, int button, boolean down) Set the state of a button on an opened virtual joystick.boolean
SDL3.setJoystickVirtualHat
(@Nullable SDL_Joystick joystick, int hat, byte value) Set the state of a hat on an opened virtual joystick.boolean
SDL3.setJoystickVirtualTouchpad
(@Nullable SDL_Joystick joystick, int touchpad, int finger, boolean down, float x, float y, float pressure) Set touchpad finger state on an opened virtual joystick. -
Uses of SDL_Joystick in club.doki7.sdl3.handle
Classes in club.doki7.sdl3.handle that implement interfaces with type arguments of type SDL_JoystickModifier and TypeClassDescriptionstatic final record
Represents a pointer toSDL_Joystick
handle(s) in native memory.Methods in club.doki7.sdl3.handle that return SDL_JoystickModifier and TypeMethodDescription@Nullable SDL_Joystick
SDL_Joystick.Ptr.read()
@Nullable SDL_Joystick
SDL_Joystick.Ptr.read
(long index) Methods in club.doki7.sdl3.handle that return types with arguments of type SDL_JoystickMethods in club.doki7.sdl3.handle with parameters of type SDL_JoystickModifier and TypeMethodDescriptionstatic SDL_Joystick.Ptr
SDL_Joystick.Ptr.allocate
(Arena arena, @Nullable SDL_Joystick[] values) static SDL_Joystick.Ptr
SDL_Joystick.Ptr.allocateV
(Arena arena, @Nullable SDL_Joystick value0, @Nullable SDL_Joystick... values) void
SDL_Joystick.Ptr.write
(long index, @Nullable SDL_Joystick value) void
SDL_Joystick.Ptr.write
(@Nullable SDL_Joystick value) void
SDL_Joystick.Ptr.write
(@Nullable SDL_Joystick[] values) void
SDL_Joystick.Ptr.writeV
(@Nullable SDL_Joystick value0, @Nullable SDL_Joystick... values)