Ignore:
Timestamp:
Oct 24, 2021, 4:50:48 AM (3 years ago)
Author:
rossy
Message:

Daodan: Add new local input system based on Raw Input

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Daodan/src/Patches/Input.h

    r1017 r1163  
    44#include "../Daodan.h"
    55
    6 typedef uint32_t CustomActionCallbackArgument;
    7 
    8 typedef void (*CustomActionCallback_t) (CustomActionCallbackArgument argument);
     6typedef void (*DDtCustomActionCallback)(intptr_t ctx);
    97
    108typedef enum {
    11         EVENT_KEYPRESS,
    12         EVENT_KEYDOWN,
    13 } ActionEventType_t;
     9        DDcEventType_KeyPress,
     10        DDcEventType_KeyDown,
     11} DDtActionEventType;
    1412
    15 void Input_PatchCode ();
     13void DDrInput_RegisterCustomAction(const char *name, DDtActionEventType type,
     14                                   DDtCustomActionCallback callback,
     15                                   intptr_t ctx);
     16bool DDrInput_WindowProc(HWND window, UINT msg, WPARAM wparam, LPARAM lparam,
     17                         LRESULT* res);
    1618
    17 void Input_RegisterCustomAction (const char* actionname, ActionEventType_t eventType, uint32_t keydownTimeoutTicks, CustomActionCallback_t callback, CustomActionCallbackArgument callbackArgument);
     19void DDrInput_PatchUtilityInput(void);
     20void DDrInput_PatchCustomActions(void);
     21void DDrInput_PatchDaodanInput(void);
    1822
    1923#endif
Note: See TracChangeset for help on using the changeset viewer.