Last change
on this file since 1167 was 1163, checked in by rossy, 3 years ago |
Daodan: Add new local input system based on Raw Input
|
File size:
639 bytes
|
Rev | Line | |
---|
[1017] | 1 | #ifndef INPUT_H
|
---|
| 2 | #define INPUT_H
|
---|
| 3 |
|
---|
| 4 | #include "../Daodan.h"
|
---|
| 5 |
|
---|
[1163] | 6 | typedef void (*DDtCustomActionCallback)(intptr_t ctx);
|
---|
[1017] | 7 |
|
---|
| 8 | typedef enum {
|
---|
[1163] | 9 | DDcEventType_KeyPress,
|
---|
| 10 | DDcEventType_KeyDown,
|
---|
| 11 | } DDtActionEventType;
|
---|
[1017] | 12 |
|
---|
[1163] | 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);
|
---|
[1017] | 18 |
|
---|
[1163] | 19 | void DDrInput_PatchUtilityInput(void);
|
---|
| 20 | void DDrInput_PatchCustomActions(void);
|
---|
| 21 | void DDrInput_PatchDaodanInput(void);
|
---|
[1017] | 22 |
|
---|
| 23 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.