Last change
on this file since 1108 was 1017, checked in by alloc, 10 years ago |
Daodan 4.0: Added Input module, cheats bindable to keys
|
File size:
487 bytes
|
Rev | Line | |
---|
[1017] | 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
|
---|
Note:
See
TracBrowser
for help on using the repository browser.