mirror of
https://github.com/isledecomp/isle-portable.git
synced 2024-11-22 15:37:55 -05:00
e16249b672
* define MxLong/MxULong The "long" type has different sizes on different platforms, and this may cause issues. * use DWORD to match RegQueryValueExA arg
37 lines
776 B
C++
37 lines
776 B
C++
#ifndef LEGOINPUTMANAGER_H
|
|
#define LEGOINPUTMANAGER_H
|
|
|
|
#include "decomp.h"
|
|
#include "mxpresenter.h"
|
|
|
|
enum NotificationId
|
|
{
|
|
NONE = 0,
|
|
KEYDOWN = 7,
|
|
MOUSEUP = 8,
|
|
MOUSEDOWN = 9,
|
|
MOUSEMOVE = 10,
|
|
TIMER = 15
|
|
};
|
|
|
|
// VTABLE 0x100d8760
|
|
// SIZE 0x338
|
|
class LegoInputManager : public MxPresenter
|
|
{
|
|
public:
|
|
LegoInputManager();
|
|
virtual ~LegoInputManager() override;
|
|
|
|
__declspec(dllexport) void QueueEvent(NotificationId id, unsigned char p2, MxLong p3, MxLong p4, unsigned char p5);
|
|
__declspec(dllexport) void Register(MxCore *);
|
|
__declspec(dllexport) void UnRegister(MxCore *);
|
|
|
|
virtual MxLong Tickle() override; // vtable+0x8
|
|
|
|
undefined m_pad40[0x15c];
|
|
int m_joystickIndex;
|
|
undefined m_pad200[0x194];
|
|
MxBool m_useJoystick;
|
|
};
|
|
|
|
#endif // LEGOINPUTMANAGER_H
|