--- Daodan/src/Oni/Symbols_Func.h 2014/04/09 00:10:18 995 +++ Daodan/src/Oni/Symbols_Func.h 2021/10/24 02:50:48 1163 @@ -56,7 +56,7 @@ DefFunc(int16_t, ONrGameState_NewCharact DefFunc(void, ONrGameState_DeleteCharacter, ONICALL, (Character *inCharacter), 0x004DC480); DefFunc(void, ONrGameState_Timer_Start, ONICALL, (char* function, int time), 0x004FD370); -DefFunc(void, ONrGameState_HandleUtilityInput, ONICALL, (const void* inInput), 0x004f6200); +DefFunc(void, ONrGameState_HandleUtilityInput, ONICALL, (GameInput *input), 0x004f6200); DefFunc(uint8_t, ONrDebugKey_WentDown, ONICALL, (uint32_t inKey), 0x005050d0); // Get active (player?) character @@ -100,7 +100,7 @@ DefFunc(uint16_t, SLrGlobalVariable_Regi DefFunc(uint16_t, SLrGlobalVariable_Register_String, ONICALL, (char* name, char* desc, char* data), 0x00477fe0); // Print message to console ? -DefFunc(int, COrMessage_Print, ONICALL, (char* Message, char* Key, void* noidea), 0x004304B0); +DefFunc(int, COrMessage_Print, ONICALL, (const char* Message, const char* Key, uint32_t fadeTime), 0x004304B0); DefFunc(UUtBool, COrCommand_Execute, ONICALL, (char* command), 0x004317D0); DefFunc(void, COrConsole_StatusLine_Display, ONICALL, (), 0x00431E70); @@ -170,6 +170,37 @@ DefFunc(void, LIrPlatform_Mode_Set, ONIC // Terminates platform-specific local-input. DefFunc(void, LIrPlatform_Terminate, ONICALL, (void), 0x00403620); +// Key_config callback for each mapping found +DefFunc(uint16_t, LIrBinding_Add, ONICALL, (uint32_t key, const char* name), 0x00403c60); + +// Called when processing key input +DefFunc(void, LIrActionBuffer_Add, ONICALL, (void* unknown, LItDeviceInput* input), 0x00403b30); + +// Called during the game loop to run the Windows message loop +DefFunc(UUtBool, LIiPlatform_InputEvent_GetEvent, ONICALL, (void), 0x004036d0); + +// Called by the game loop to get the latest input frames +DefFunc(void, LIrActionBuffer_Get, ONICALL, (short* count, LItActionBuffer **buffers), 0x00403be0); + +// Gets the mouse position +DefFunc(void, LIrPlatform_InputEvent_GetMouse, ONICALL, (int active, LItInputEvent *info), 0x00402ca0); + +// Checks if a keyboard key is pressed +DefFunc(UUtBool, LIrPlatform_TestKey, ONICALL, (int key, int active), 0x00403930); + +// Translates a key name (from key_config.txt) to a key code +DefFunc(int, LIrTranslate_InputName, ONICALL, (char *name), 0x00403a90); + +// Updates TargetGameTime in the game state +DefFunc(void, ONrGameState_UpdateServerTime, ONICALL, (GameState *game_state), 0x004fbeb0); + +// Basically stricmp, but it only ever does ASCII case folding +DefFunc(int, UUrString_Compare_NoCase, ONICALL, (const char *str1, const char *str2), 0x004266d0); + +// A safe strcpy which lets you specify the size of the target buffer and always +// NUL-terminates. Kind of like strlcpy. Just don't call it with dest_size = 0. +DefFunc(void, UUrString_Copy, ONICALL, (char *dest, const char *src, size_t dest_size), 0x004265f0); + #undef DefFunc #endif