mirror of
https://github.com/celisej567/mcpe.git
synced 2026-09-04 19:36:43 +03:00
37 lines
534 B
C++
37 lines
534 B
C++
#pragma once
|
|
|
|
#include <vector>
|
|
|
|
struct MouseInput
|
|
{
|
|
int field_0 = 0;
|
|
int field_4 = 0;
|
|
int field_8 = 0;
|
|
int field_C = 0;
|
|
|
|
MouseInput() {}
|
|
MouseInput(int x1, int x2, int x3, int x4)
|
|
{
|
|
field_0 = x1;
|
|
field_4 = x2;
|
|
field_8 = x3;
|
|
field_C = x4;
|
|
}
|
|
};
|
|
|
|
class Mouse
|
|
{
|
|
public:
|
|
static void feed(int, int, int, int);
|
|
|
|
// @TODO: There's plenty of inlined code here. Out-line it.
|
|
|
|
public:
|
|
static std::vector<MouseInput> _inputs;
|
|
static int _index;
|
|
static int _x, _y;
|
|
static int _xOld, _yOld;
|
|
static int _buttonStates[3];
|
|
};
|
|
|