mirror of
https://github.com/2OOP/pism.git
synced 2026-02-04 10:54:51 +00:00
add: own branch
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user