- namespace Game
- enum EventButton
- enum EventQuitType
- enum EventType
- enum KeyboardKey
- class Event
- class GameWindow
- class KeyEvent
- class MouseClickEvent
- class MouseEvent
- class MouseMoveEvent
- class MouseScrollEvent
- class QuitEvent
Enum for describing the button on mouse-based events.
Mouse left button.
Mouse right button.
Enum for specifically describing how a quit event was generated.
Quit event type for when user presses Alt + F4.
Quit event when user presses the close button in the window chrome.
Quit event when user presses the hardware back button.
Describes the type of the event.
Type of an event fired when the user attempts to close the program. This type is associated with the Game.QuitEvent class.
Type of an event for when the user presses a key on the keyboard. This type is associated with the Game.KeyEvent class.
Type of an event for when the user releases a key on the keyboard. This type is associated with the Game.KeyEvent class.
Type of an event for when the user presses the left mouse button. This type is associated with the Game.MouseClickEvent class.
Type of an event for when the user releases the left mouse button. This type is associated with the Game.MouseClickEvent class.
Type of an event for when the user presses the right mouse button. This type is associated with the Game.MouseClickEvent class.
Type of an event for when the user releases the right mouse button. This type is associated with the Game.MouseClickEvent class.
Type of an event for when the mouse moves. This type is associated with the Game.MouseMoveEvent class.
Type of an event for when the mouse wheel is scrolled. This type is associated with the Game.MouseScrollEvent class.
Type of an event when a gamepad button or axis' state has been modified.
Type of an event when a gamepad button or axis that has been configured has been modified.
Enum representing keys on a standard US keyboard.
Base abstract class of all game events. See the more specific class for more useful information.
Represents the game window or the browser frame or mobile screen. Manages the size of the screen, frame rate, and user input. For drawing graphical information to the screen, see the Graphics2D library.
new GameWindow(title, fps, width, height, screenWidth, screenHeight)[link]
The title to appear in the window (if supported by the platform). Certain platforms require a name before the VM has a chance to run (such as the setting the title of the HTML host page or the name of a mobile app. For these, use the title field in the build file.
The desired frames per second for the game.
Logical width of the window.
Logical height of the window.
Actual width of the window. The image will be stretched to fit this size.
Actual height of the window. The image will be stretched to fit this size.
Indicates that the frame has ended. This will cause the program to pause for an amount of time to maintain the frame rate.
Returns a list of events that have occurred since the last time pumpEvents was invoked.
|List of Event|
Returns a list of events
Sets the title of the window to a new string, if possible.
the new title of the window
Event that gets fired when a keyboard key is pressed or released.
Event that gets fired when a mouse button is pressed or released.
Event that gets fired when a mouse event occurs. This is an abstract base class for other more specific mouse events.
Event that gets fired when the mouse moves. Does not have any special fields since the X and Y values are in the base class.
Event that gets fired when the scroll wheel is scrolled.
Event that gets fired when a quit attempt has occured, such clicking the close button or pressing Alt+F4.