ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/Daodan/src/Patches/Input.h
Revision: 1017
Committed: Mon Mar 23 23:29:19 2015 UTC (10 years, 6 months ago) by alloc
Content type: text/x-chdr
File size: 487 byte(s)
Log Message:
Daodan 4.0: Added Input module, cheats bindable to keys

File Contents

# Content
1 #ifndef INPUT_H
2 #define INPUT_H
3
4 #include "../Daodan.h"
5
6 typedef uint32_t CustomActionCallbackArgument;
7
8 typedef void (*CustomActionCallback_t) (CustomActionCallbackArgument argument);
9
10 typedef enum {
11 EVENT_KEYPRESS,
12 EVENT_KEYDOWN,
13 } ActionEventType_t;
14
15 void Input_PatchCode ();
16
17 void Input_RegisterCustomAction (const char* actionname, ActionEventType_t eventType, uint32_t keydownTimeoutTicks, CustomActionCallback_t callback, CustomActionCallbackArgument callbackArgument);
18
19 #endif