| 8 |  |  | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 9 |  | #define ONICALL __fastcall | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 10 |  |  | 
 
 
 
 
 
 
 
 
 
 
 | 11 | < |  | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 11 | > | typedef struct { | 
 
 
 
 
 | 12 | > | short x; | 
 
 
 
 
 | 13 | > | short y; | 
 
 
 
 
 | 14 | > | } IMtPoint; | 
 
 
 
 
 | 15 | > |  | 
 
 
 
 
 | 16 | > | // The following headers were written when Daodan used -fpack-struct, and | 
 
 
 
 
 | 17 | > | // should be rewritten | 
 
 
 
 
 | 18 | > | #pragma pack(push, 1) | 
 
 
 
 
 
 
 
 
 
 
 | 19 |  | #include "stdtypes.h" | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 20 |  | #include "BFW_Motoko_Draw.h" | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 21 |  | #include "BFW_ScriptLang.h" | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 23 |  | #include "GameState.h" | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 24 |  | #include "GL.h" | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 25 |  | #include "OBJt.h" | 
 
 
 
 
 
 
 
 | 26 | + | #pragma pack(pop) | 
 
 
 
 
 
 
 
 | 27 | + |  | 
 
 
 
 
 
 
 
 | 28 | + | #include "Input.h" | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 29 |  |  | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 30 |  | #define DDmAssert(expr) assert(expr); | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 31 |  |  | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 43 |  | int16_t bottom; | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 44 |  | } UUtRect; | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 45 |  |  | 
 
 
 
 
 
 
 
 
 | 36 | – | typedef struct { | 
 
 
 
 
 
 
 
 
 | 37 | – | uint32_t input; | 
 
 
 
 
 
 
 
 
 | 38 | – | float analog; | 
 
 
 
 
 
 
 
 
 | 39 | – | } LItDeviceInput; | 
 
 
 
 
 
 
 
 
 | 40 | – |  | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 46 |  | #include "Symbols_Var.h" | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 47 |  | #include "Symbols_Func.h" | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 48 |  |  |