Skip navigation links

Package avcl.joystick

Contains code to receive input from joysticks and potentially other input devices.

See: Description

Package avcl.joystick Description

Contains code to receive input from joysticks and potentially other input devices.

This makes use of the net.java.games.* package, which provides input from various devices. The package is JNI based, and therefore requires a native binary lib file to be loaded at runtime. The directory the native lib file resides in is set by the runtime argument -Djava.library.path=/path/to/lib/dir The jar file is jinput.jar, which wraps around the native, platform-specific libraries of jinput-wintap.dll, jinput-dx8_64.dll, libjinput-linux.so, libjinput-osx.jnilib, etc, depending on the platform.

Objects interested in joystick events should implement the JoystickEventListener interface and subscribe to JoystickEvent messages, which are generated by a JoystickObserver class.

Skip navigation links