libultraship
Reimplementations of libultra (N64 SDK) functions for modern hardware
Loading...
Searching...
No Matches
WindowEvent.h
Go to the documentation of this file.
1#pragma once
2
3// Fixes issue #926: ship/window/gui/Gui.h previously defined WindowEvent in the Ship namespace,
4// but this type is only ever constructed and consumed by Fast3D backend code (gfx_sdl2.cpp,
5// gfx_dxgi.cpp) and processed by Fast3dGui::HandleWindowEvents. Moving it to the Fast namespace
6// enforces the correct include hierarchy: fast can include fast, ship cannot include fast.
7
8namespace Fast {
9
17typedef union {
18 struct {
19 void* Handle;
20 int Msg;
21 int Param1;
22 int Param2;
23 } Win32;
24 struct {
25 void* Event;
26 } Sdl;
27 struct {
28 void* Input;
29 } Gx2;
30} WindowEvent;
31
32} // namespace Fast
Definition gfx_direct3d_common.h:19
void * Event
SDL_Event*.
Definition WindowEvent.h:25
void * Input
GX2 input structure pointer.
Definition WindowEvent.h:28
int Param1
WPARAM.
Definition WindowEvent.h:21
void * Handle
HWND.
Definition WindowEvent.h:19
int Msg
Windows message ID.
Definition WindowEvent.h:20
int Param2
LPARAM.
Definition WindowEvent.h:22