source: Daodan/src/Patches/Input.h@ 1091

Last change on this file since 1091 was 1017, checked in by alloc, 10 years ago

Daodan 4.0: Added Input module, cheats bindable to keys

File size: 487 bytes
Line 
1#ifndef INPUT_H
2#define INPUT_H
3
4#include "../Daodan.h"
5
6typedef uint32_t CustomActionCallbackArgument;
7
8typedef void (*CustomActionCallback_t) (CustomActionCallbackArgument argument);
9
10typedef enum {
11 EVENT_KEYPRESS,
12 EVENT_KEYDOWN,
13} ActionEventType_t;
14
15void Input_PatchCode ();
16
17void Input_RegisterCustomAction (const char* actionname, ActionEventType_t eventType, uint32_t keydownTimeoutTicks, CustomActionCallback_t callback, CustomActionCallbackArgument callbackArgument);
18
19#endif
Note: See TracBrowser for help on using the repository browser.