Search in sources :

Example 1 with Lwjgl3WindowAdapter

use of com.badlogic.gdx.backends.lwjgl3.Lwjgl3WindowAdapter in project libgdx by libgdx.

the class DragNDropTest method main.

public static void main(String[] argv) throws NoSuchFieldException, SecurityException, ClassNotFoundException {
    final DragNDropTest test = new DragNDropTest();
    Lwjgl3ApplicationConfiguration config = new Lwjgl3ApplicationConfiguration();
    config.setWindowedMode(640, 480);
    config.setTitle("Drag files in this window");
    config.setWindowListener(new Lwjgl3WindowAdapter() {

        @Override
        public void filesDropped(String[] files) {
            for (String file : files) {
                Gdx.app.log("GLWF Drop", file);
            }
            test.addFiles(files);
        }
    });
    new Lwjgl3Application(test, config);
}
Also used : Lwjgl3WindowAdapter(com.badlogic.gdx.backends.lwjgl3.Lwjgl3WindowAdapter) Lwjgl3Application(com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application) Lwjgl3ApplicationConfiguration(com.badlogic.gdx.backends.lwjgl3.Lwjgl3ApplicationConfiguration)

Aggregations

Lwjgl3Application (com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application)1 Lwjgl3ApplicationConfiguration (com.badlogic.gdx.backends.lwjgl3.Lwjgl3ApplicationConfiguration)1 Lwjgl3WindowAdapter (com.badlogic.gdx.backends.lwjgl3.Lwjgl3WindowAdapter)1