Changeset 1163 for Daodan/src/Patches/Input.h
- Timestamp:
- Oct 24, 2021, 4:50:48 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Daodan/src/Patches/Input.h
r1017 r1163 4 4 #include "../Daodan.h" 5 5 6 typedef uint32_t CustomActionCallbackArgument; 7 8 typedef void (*CustomActionCallback_t) (CustomActionCallbackArgument argument); 6 typedef void (*DDtCustomActionCallback)(intptr_t ctx); 9 7 10 8 typedef enum { 11 EVENT_KEYPRESS,12 EVENT_KEYDOWN,13 } ActionEventType_t;9 DDcEventType_KeyPress, 10 DDcEventType_KeyDown, 11 } DDtActionEventType; 14 12 15 void Input_PatchCode (); 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); 16 18 17 void Input_RegisterCustomAction (const char* actionname, ActionEventType_t eventType, uint32_t keydownTimeoutTicks, CustomActionCallback_t callback, CustomActionCallbackArgument callbackArgument); 19 void DDrInput_PatchUtilityInput(void); 20 void DDrInput_PatchCustomActions(void); 21 void DDrInput_PatchDaodanInput(void); 18 22 19 23 #endif
Note:
See TracChangeset
for help on using the changeset viewer.