ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/Daodan/src/Patches/Input.h
Revision: 1163
Committed: Sun Oct 24 02:50:48 2021 UTC (3 years, 11 months ago) by rossy
Content type: text/x-chdr
File size: 639 byte(s)
Log Message:
Daodan: Add new local input system based on Raw Input

File Contents

# Content
1 #ifndef INPUT_H
2 #define INPUT_H
3
4 #include "../Daodan.h"
5
6 typedef void (*DDtCustomActionCallback)(intptr_t ctx);
7
8 typedef enum {
9 DDcEventType_KeyPress,
10 DDcEventType_KeyDown,
11 } DDtActionEventType;
12
13 void DDrInput_RegisterCustomAction(const char *name, DDtActionEventType type,
14 DDtCustomActionCallback callback,
15 intptr_t ctx);
16 bool DDrInput_WindowProc(HWND window, UINT msg, WPARAM wparam, LPARAM lparam,
17 LRESULT* res);
18
19 void DDrInput_PatchUtilityInput(void);
20 void DDrInput_PatchCustomActions(void);
21 void DDrInput_PatchDaodanInput(void);
22
23 #endif