Last change
on this file since 1191 was 1163, checked in by rossy, 3 years ago |
Daodan: Add new local input system based on Raw Input
|
File size:
867 bytes
|
Rev | Line | |
---|
[992] | 1 | #ifndef ONI_H
|
---|
| 2 | #define ONI_H
|
---|
| 3 |
|
---|
| 4 | #include "stdint.h"
|
---|
| 5 | #include <stdio.h>
|
---|
| 6 | #include <windows.h>
|
---|
| 7 | #include <GL/gl.h>
|
---|
| 8 |
|
---|
| 9 | #define ONICALL __fastcall
|
---|
| 10 |
|
---|
[1163] | 11 | typedef struct {
|
---|
| 12 | short x;
|
---|
| 13 | short y;
|
---|
| 14 | } IMtPoint;
|
---|
[992] | 15 |
|
---|
[1163] | 16 | // The following headers were written when Daodan used -fpack-struct, and
|
---|
| 17 | // should be rewritten
|
---|
| 18 | #pragma pack(push, 1)
|
---|
[992] | 19 | #include "stdtypes.h"
|
---|
| 20 | #include "BFW_Motoko_Draw.h"
|
---|
| 21 | #include "BFW_ScriptLang.h"
|
---|
| 22 | #include "Character.h"
|
---|
| 23 | #include "GameState.h"
|
---|
| 24 | #include "GL.h"
|
---|
| 25 | #include "OBJt.h"
|
---|
[1163] | 26 | #pragma pack(pop)
|
---|
[992] | 27 |
|
---|
[1163] | 28 | #include "Input.h"
|
---|
| 29 |
|
---|
[992] | 30 | #define DDmAssert(expr) assert(expr);
|
---|
| 31 |
|
---|
| 32 | #define WMcMessage_Quit 0x39 // WM_QUIT equivalent.
|
---|
| 33 |
|
---|
| 34 | typedef struct {
|
---|
| 35 | HINSTANCE Instance;
|
---|
| 36 | HWND Window;
|
---|
| 37 | } ONtPlatformData;
|
---|
| 38 |
|
---|
| 39 | typedef struct {
|
---|
| 40 | int16_t left;
|
---|
| 41 | int16_t top;
|
---|
| 42 | int16_t right;
|
---|
| 43 | int16_t bottom;
|
---|
| 44 | } UUtRect;
|
---|
| 45 |
|
---|
| 46 | #include "Symbols_Var.h"
|
---|
| 47 | #include "Symbols_Func.h"
|
---|
| 48 |
|
---|
| 49 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.