Reconstruct readable C++ and organize cohesive source subsystems
Administrative source import: native x86 compilation passed for 423 authored units. Source placement and submission states are migrated separately; this commit does not imply peer acceptance.
Previous head: 35d2a8cb36
Payload SHA256: 592f016d2730c5593bb653aa054c1e5f76a6df72c8f5a09e66f74876e2e33dee
This commit is contained in:
parent
35d2a8cb36
commit
a47d20f8be
890 changed files with 11796 additions and 16664 deletions
39
Source/Client/Input/Mouse.h
Normal file
39
Source/Client/Input/Mouse.h
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
#ifndef RAGNAROK_SOURCE_CLIENT_INPUT_MOUSE_H
|
||||
#define RAGNAROK_SOURCE_CLIENT_INPUT_MOUSE_H
|
||||
|
||||
#include <cstdint>
|
||||
#include <windows.h>
|
||||
|
||||
class CMouse {
|
||||
public:
|
||||
virtual ~CMouse();
|
||||
void Update();
|
||||
void Reset();
|
||||
int Center();
|
||||
void SetX(int value);
|
||||
void SetY(int value);
|
||||
|
||||
void Message(CMouse& global, HWND mainWindow, HWND source, UINT message, WPARAM keys, LPARAM unused);
|
||||
|
||||
/* 0004 */ int x = 0;
|
||||
/* 0008 */ int y = 0;
|
||||
/* 000C */ int deltaX = 0;
|
||||
/* 0010 */ int deltaY = 0;
|
||||
/* 0014 */ int buttons[2] = {};
|
||||
/* 001C */ int wheel = 0;
|
||||
/* 0020 */ int pendingX = 0;
|
||||
/* 0024 */ int pendingY = 0;
|
||||
/* 0028 */ int pendingWheel = 0;
|
||||
/* 002C */ std::uint8_t previousButtons[2] = {};
|
||||
/* 002E */ std::uint8_t pendingButtons[2] = {};
|
||||
/* 0030 */ std::uint32_t pressTicks[2] = {};
|
||||
/* 0038 */ std::uint32_t doubleClickTime = 500;
|
||||
/* 003C */ std::uint8_t active = 1;
|
||||
std::uint8_t unknown_003D[3] = {};
|
||||
};
|
||||
|
||||
#if defined(_WIN32) && !defined(_WIN64)
|
||||
static_assert(sizeof(CMouse) == 64);
|
||||
#endif
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue