- MOUSEBUTTON/MOUSEMODE move to Engine/Source/Event/Types.h (WoW/Source/Console/Types.h removed; COLOR_T is in ConsoleBase/Types.h). - CRange and CBoundingBox move to Tempest (CRange.h, CBoundingBox.h); World.h includes them. - TEXTURECACHE moves to Gxu/GxuFontMiscClasses.h (its code is in the Gxu font range, 0x6C8E70+); CACHEENTRY stays in WoW/Common/TextureCache.h. - CGxDevice.h, CGxFont.h, M2Model.h, Event and Os drop their WoW includes. Build clean on Win32/x64 (known Wow.exe link gaps only); verify unchanged. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
43 lines
2.1 KiB
C++
43 lines
2.1 KiB
C++
#ifndef ENGINE_SOURCE_EVENT_EVTINPUT_H
|
|
#define ENGINE_SOURCE_EVENT_EVTINPUT_H
|
|
|
|
#include <cstdint>
|
|
#include "Engine/Source/Event/Types.h"
|
|
#include "Engine/Source/Os/Input.h"
|
|
#include "Engine/Source/Tempest/CRect.h"
|
|
|
|
class EvtContext;
|
|
|
|
namespace Input {
|
|
extern MOUSEMODE s_mouseMode;
|
|
extern uint32_t s_mouseHoldButton;
|
|
extern uint32_t s_metaKeyState;
|
|
extern uint32_t s_buttonState;
|
|
extern CRect s_boundingRect;
|
|
}
|
|
|
|
void ConvertPosition(int32_t x, int32_t y, float* outX, float* outY);
|
|
int32_t IEvtConfirmClose();
|
|
void IEvtDispatchFocusChanged(EvtContext* context, int32_t focus);
|
|
void IEvtDispatchInput(EvtContext* context, OSINPUT id, int32_t* param, int32_t* shutdown);
|
|
void IEvtDispatchJoystickAxis(EvtContext* context, int32_t id, int32_t value, uint32_t time);
|
|
void IEvtDispatchJoystickStick(EvtContext* context, int32_t id, int32_t x, int32_t y, uint32_t time);
|
|
void IEvtDispatchKeyDown(EvtContext* context, KEY key, uint32_t repeat, uint32_t time);
|
|
void IEvtDispatchKeyUp(EvtContext* context, KEY key, uint32_t repeat, uint32_t time);
|
|
void IEvtDispatchMouseDown(EvtContext* context, MOUSEBUTTON button, int32_t x, int32_t y, uint32_t time);
|
|
void IEvtDispatchMouseEvent(EvtContext* context, MOUSEBUTTON button, int32_t x, int32_t y, uint32_t flags, uint32_t time);
|
|
void IEvtDispatchMouseEvents(EvtContext* context, int32_t x, int32_t y);
|
|
void IEvtDispatchMouseMove(EvtContext* context, int32_t x, int32_t y, uint32_t time);
|
|
void IEvtDispatchMouseMoveRelative(EvtContext* context, int32_t x, int32_t y, uint32_t time);
|
|
void IEvtDispatchMouseWheel(EvtContext* context, int32_t wheelDistance, int32_t x, int32_t y, uint32_t time);
|
|
void IEvtInputDestroy();
|
|
void IEvtInputGetMousePosition(float* x, float* y);
|
|
void IEvtInputInitialize();
|
|
int32_t IEvtInputProcess(EvtContext* context, int32_t* shutdown);
|
|
void IEvtInputSetConfirmCloseCallback(int32_t (*callback)(void*), void* param);
|
|
void IEvtInputSetMouseMode(EvtContext* context, MOUSEMODE mode, uint32_t holdButton);
|
|
void PostMouseModeChanged(EvtContext* context, MOUSEMODE mode);
|
|
void PostString(EvtContext* context, const uint16_t* string, int32_t length);
|
|
|
|
#endif
|