add: own branch

This commit is contained in:
ramollia
2025-09-16 11:23:48 +02:00
committed by lieght
parent 82fd67d351
commit 5fcb77fd92
26 changed files with 773 additions and 177 deletions

View File

@@ -2,10 +2,11 @@ package org.toop.eventbus;
import org.toop.server.backend.tictactoe.TicTacToeServer;
import org.toop.server.backend.tictactoe.TicTacToeServerCommand;
import org.toop.server.Server;
import org.toop.core.*;
import java.lang.reflect.Constructor;
import java.util.Arrays;
import java.util.concurrent.CompletableFuture;
/**
* Events that are used in the GlobalEventBus class.
@@ -264,7 +265,30 @@ public class Events implements IEvents {
}
public static class WindowEvents {
/**
* Triggers when the window wants to quit.
*/
public record OnQuitRequested() {}
/**
* Triggers when the window is resized.
*/
public record OnResize(Window.Size size) {}
/**
* Triggers when the mouse is moved within the window.
*/
public record OnMouseMove(int x, int y) {}
/**
* Triggers when the mouse is clicked within the window.
*/
public record OnMouseClick(int button) {}
/**
* Triggers when the mouse is released within the window.
*/
public record OnMouseRelease(int button) {}
}
public static class TttEvents {