Skip to main content

FlixelLwjgl3ApplicationConfiguration

View source

class

org.flixelgdx.backend.lwjgl3.FlixelLwjgl3ApplicationConfiguration

public class FlixelLwjgl3ApplicationConfiguration extends Lwjgl3ApplicationConfiguration

libGDX LWJGL3 application configuration that records the last user-set Lwjgl3WindowListener so FlixelLwjgl3Launcher can wrap it for Flixel window hooks and optional close absorption without reflection.

Use this type whenever you pass a custom configuration into FlixelLwjgl3Launcher.launch(...) and you call FlixelLwjgl3ApplicationConfiguration.setWindowListener(Lwjgl3WindowListener) yourself. The convenience overloads that build a configuration for you already create an instance of this class.

Example:

FlixelLwjgl3ApplicationConfiguration config = new FlixelLwjgl3ApplicationConfiguration();
config.setTitle("My Game");
config.setWindowListener(myListener);
FlixelLwjgl3Launcher.launch(game, FlixelRuntimeMode.RELEASE, config);

Constructors

FlixelLwjgl3ApplicationConfiguration()

public FlixelLwjgl3ApplicationConfiguration()

Methods

setWindowListener(Lwjgl3WindowListener)

public void setWindowListener(Lwjgl3WindowListener listener)

getUserWindowListener()

public Lwjgl3WindowListener getUserWindowListener()

Returns: The last listener you assigned with FlixelLwjgl3ApplicationConfiguration.setWindowListener(Lwjgl3WindowListener) before the Flixel listener was installed, or null if none. FlixelLwjgl3WindowListener itself is excluded; that wrapper is managed by FlixelLwjgl3Launcher.


attachFlixelWindowListener()

public void attachFlixelWindowListener()

Installs the FlixelLwjgl3WindowListener that drives Flixel window lifecycle hooks and close absorption support, wrapping any user-supplied listener. Safe to call more than once; repeated calls refresh the hook reference without creating a new listener.