Top Description Inners Constructors Methods
org.lwjgl.glfw

public abstract Class GLFWJoystickCallback

extends Callback
implements GLFWJoystickCallbackI
Class Inheritance
All Implemented Interfaces
org.lwjgl.glfw.GLFWJoystickCallbackI, org.lwjgl.system.CallbackI, org.lwjgl.system.Pointer
Known Direct Subclasses
org.lwjgl.glfw.GLFWJoystickCallback.Container
Imports
javax.annotation.*, org.lwjgl.system.*

Instances of this class may be passed to the SetJoystickCallback method.

Type


void (*invoke) (
    int jid,
    int event
)
Since
version 3.2

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Constructor Summary

AccessConstructor and Description
protected
pack-priv
GLFWJoystickCallback(long functionPointer)

Method Summary

Modifier and TypeMethod and Description
public static GLFWJoystickCallback

Returns:

the new GLFWJoystickCallback
create
(long functionPointer)

Creates a GLFWJoystickCallback instance from the specified function pointer.

public static GLFWJoystickCallback
create(GLFWJoystickCallbackI instance)

Creates a GLFWJoystickCallback instance that delegates to the specified GLFWJoystickCallbackI instance.

public static GLFWJoystickCallback
createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

public GLFWJoystickCallback
Inherited from org.lwjgl.system.Callback:
addressequalsfreefreegetgetSafehashCodetoString

Constructor Detail

GLFWJoystickCallbackback to summary
protected GLFWJoystickCallback()
GLFWJoystickCallbackback to summary
pack-priv GLFWJoystickCallback(long functionPointer)

Method Detail

createback to summary
public static GLFWJoystickCallback create(long functionPointer)

Creates a GLFWJoystickCallback instance from the specified function pointer.

Returns:GLFWJoystickCallback

the new GLFWJoystickCallback

createback to summary
public static GLFWJoystickCallback create(GLFWJoystickCallbackI instance)

Creates a GLFWJoystickCallback instance that delegates to the specified GLFWJoystickCallbackI instance.

createSafeback to summary
public static GLFWJoystickCallback createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

Annotations
@Nullable
setback to summary
public GLFWJoystickCallback set()

See SetJoystickCallback.

org.lwjgl.glfw back to summary

private final Class GLFWJoystickCallback.Container

extends GLFWJoystickCallback
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final GLFWJoystickCallbackI

Constructor Summary

AccessConstructor and Description
pack-priv
Container(long functionPointer, GLFWJoystickCallbackI delegate)

Method Summary

Modifier and TypeMethod and Description
public void
invoke(int
the joystick that was connected or disconnected
jid
,
int
one of CONNECTED or DISCONNECTED. Remaining values reserved for future use.
event
)

Implements org.lwjgl.glfw.GLFWJoystickCallbackI.invoke.

Will be called when a joystick is connected to or disconnected from the system.
Inherited from org.lwjgl.glfw.GLFWJoystickCallback:
createcreatecreateSafeset

Field Detail

delegateback to summary
private final GLFWJoystickCallbackI delegate

Constructor Detail

Containerback to summary
pack-priv Container(long functionPointer, GLFWJoystickCallbackI delegate)

Method Detail

invokeback to summary
public void invoke(int jid, int event)

Implements org.lwjgl.glfw.GLFWJoystickCallbackI.invoke.

Doc from org.lwjgl.glfw.GLFWJoystickCallbackI.invoke.

Will be called when a joystick is connected to or disconnected from the system.

Parameters
jid:int

the joystick that was connected or disconnected

event:int

one of CONNECTED or DISCONNECTED. Remaining values reserved for future use.

Annotations
@Override