373 lines
5.7 KiB
C
373 lines
5.7 KiB
C
#include "input.h"
|
|
|
|
// Global variables
|
|
tJoy_array gJoy_array;
|
|
tKey_array gKey_array;
|
|
int gKey_poll_counter;
|
|
tRolling_letter *gRolling_letters;
|
|
tU32 gLast_poll_keys;
|
|
int gCurrent_cursor;
|
|
int gCurrent_position;
|
|
int gInsert_mode;
|
|
int gLetter_x_coords[15];
|
|
int gEdge_trigger_mode;
|
|
int gVisible_length;
|
|
int gLetter_y_coords[15];
|
|
int gThe_key;
|
|
tU32 gLast_key_down_time;
|
|
int gThe_length;
|
|
tU32 gLast_roll;
|
|
int gLast_key_down;
|
|
int gGo_ahead_keys[3];
|
|
int gKey_mapping[67];
|
|
char gCurrent_typing[110];
|
|
|
|
// Offset: 0
|
|
// Size: 996
|
|
// EAX: pKeys
|
|
// EDX: pMark
|
|
void SetJoystickArrays(int *pKeys) {
|
|
int pMark;
|
|
int i;
|
|
tS32 joyX;
|
|
tS32 joyY;
|
|
tS32 old_joy1X;
|
|
tS32 old_joy1Y;
|
|
tS32 old_joy2X;
|
|
tS32 old_joy2Y;
|
|
}
|
|
|
|
// Offset: 996
|
|
// Size: 82
|
|
void PollKeys() {
|
|
}
|
|
|
|
// Offset: 1080
|
|
// Size: 127
|
|
void CyclePollKeys() {
|
|
}
|
|
|
|
// Offset: 1208
|
|
// Size: 116
|
|
void ResetPollKeys() {
|
|
}
|
|
|
|
// Offset: 1324
|
|
// Size: 76
|
|
void CheckKeysForMouldiness() {
|
|
}
|
|
|
|
// Offset: 1400
|
|
// Size: 82
|
|
int EitherMouseButtonDown() {
|
|
int but_2;
|
|
}
|
|
|
|
// Offset: 1484
|
|
// Size: 214
|
|
// EAX: pKey_index
|
|
tKey_down_result PDKeyDown2(int pKey_index) {
|
|
tU32 the_time;
|
|
}
|
|
|
|
// Offset: 1700
|
|
// Size: 130
|
|
// EAX: pKey_index
|
|
int PDKeyDown(int pKey_index) {
|
|
tKey_down_result result;
|
|
}
|
|
|
|
// Offset: 1832
|
|
// Size: 117
|
|
// EAX: pKey_index
|
|
int PDKeyDown3(int pKey_index) {
|
|
int last_key_down_time;
|
|
int last_key_down;
|
|
tKey_down_result result;
|
|
}
|
|
|
|
// Offset: 1952
|
|
// Size: 208
|
|
int PDAnyKeyDown() {
|
|
tKey_down_result result;
|
|
}
|
|
|
|
// Offset: 2160
|
|
// Size: 88
|
|
int AnyKeyDown() {
|
|
}
|
|
|
|
// Offset: 2248
|
|
// Size: 451
|
|
tU32* KevKeyService() {
|
|
tU32 sum;
|
|
tU32 code;
|
|
tU32 code2;
|
|
int last_key;
|
|
int last_single_key;
|
|
tU32 last_time;
|
|
tU32 return_val[2];
|
|
tU32 keys;
|
|
}
|
|
|
|
// Offset: 2700
|
|
// Size: 145
|
|
// EAX: pKey_index
|
|
int OldKeyIsDown(int pKey_index) {
|
|
int i;
|
|
}
|
|
|
|
// Offset: 2848
|
|
// Size: 157
|
|
// EAX: pKey_index
|
|
int KeyIsDown(int pKey_index) {
|
|
int i;
|
|
}
|
|
|
|
// Offset: 3008
|
|
// Size: 64
|
|
void WaitForNoKeys() {
|
|
}
|
|
|
|
// Offset: 3072
|
|
// Size: 67
|
|
void WaitForAKey() {
|
|
}
|
|
|
|
// Offset: 3140
|
|
// Size: 103
|
|
// EAX: pFKey_ID
|
|
// EDX: pCmd_key_ID
|
|
int CmdKeyDown(int pFKey_ID, int pCmd_key_ID) {
|
|
}
|
|
|
|
// Offset: 3244
|
|
// Size: 206
|
|
// EAX: pX_coord
|
|
// EDX: pY_coord
|
|
void GetMousePosition(int *pX_coord, int *pY_coord) {
|
|
int x_left_margin;
|
|
int x_right_margin;
|
|
int y_top_margin;
|
|
int y_bottom_margin;
|
|
}
|
|
|
|
// Offset: 3452
|
|
// Size: 125
|
|
void InitRollingLetters() {
|
|
}
|
|
|
|
// Offset: 3580
|
|
// Size: 48
|
|
void EndRollingLetters() {
|
|
}
|
|
|
|
// Offset: 3628
|
|
// Size: 384
|
|
// EAX: pChar
|
|
// EDX: pX
|
|
// EBX: pY
|
|
// ECX: rolling_type
|
|
int AddRollingLetter(char pChar, int pX, int pY, tRolling_type rolling_type, int let) {
|
|
int i;
|
|
int number_of_letters;
|
|
}
|
|
|
|
// Offset: 4012
|
|
// Size: 111
|
|
// EAX: pStr
|
|
// EDX: pX
|
|
// EBX: pY
|
|
// ECX: rolling_type
|
|
void AddRollingString(char *pStr, int pX, int pY, tRolling_type rolling_type, int i) {
|
|
}
|
|
|
|
// Offset: 4124
|
|
// Size: 85
|
|
// EAX: pNumber
|
|
// EDX: pWidth
|
|
// EBX: pX
|
|
// ECX: pY
|
|
void AddRollingNumber(tU32 pNumber, int pWidth) {
|
|
int pX;
|
|
int pY;
|
|
char the_string[32];
|
|
}
|
|
|
|
// Offset: 4212
|
|
// Size: 651
|
|
void RollLettersIn() {
|
|
tU32 period;
|
|
tRolling_letter *let;
|
|
int i;
|
|
int j;
|
|
int k;
|
|
int offset;
|
|
int which_letter;
|
|
int font_width;
|
|
int letter_offset;
|
|
int font_height;
|
|
int the_row_bytes;
|
|
tU8 *char_ptr;
|
|
tU8 *saved_char_ptr;
|
|
tU8 *source_ptr;
|
|
tU8 the_byte;
|
|
}
|
|
|
|
// Offset: 4864
|
|
// Size: 345
|
|
// EAX: pSlot_index
|
|
// EDX: pChar_index
|
|
// EBX: pNew_char
|
|
int ChangeCharTo(int pSlot_index, int pChar_index, char pNew_char) {
|
|
int x_coord;
|
|
int y_coord;
|
|
int i;
|
|
int j;
|
|
tRolling_letter *let;
|
|
tRolling_type new_type;
|
|
}
|
|
|
|
// Offset: 5212
|
|
// Size: 413
|
|
// EAX: pXcoord
|
|
// EDX: pYcoord
|
|
// EBX: pNew_str
|
|
// ECX: pOld_str
|
|
void ChangeTextTo(int pXcoord, int pYcoord, char *pNew_str, char *pOld_str) {
|
|
int x_coord;
|
|
int i;
|
|
int len;
|
|
int len2;
|
|
int j;
|
|
tRolling_letter *let;
|
|
tRolling_type new_type;
|
|
char new_char;
|
|
}
|
|
|
|
// Offset: 5628
|
|
// Size: 61
|
|
// EAX: pSlot_index
|
|
void SetRollingCursor(int pSlot_index) {
|
|
}
|
|
|
|
// Offset: 5692
|
|
// Size: 90
|
|
// EAX: pIndex
|
|
// EDX: pName_length
|
|
// EBX: pVisible_length
|
|
void BlankSlot(int pIndex, int pName_length, int pVisible_length) {
|
|
int i;
|
|
}
|
|
|
|
// Offset: 5784
|
|
// Size: 232
|
|
// EAX: pSlot_index
|
|
void DoRLBackspace(int pSlot_index) {
|
|
int i;
|
|
int new_len;
|
|
}
|
|
|
|
// Offset: 6016
|
|
// Size: 190
|
|
// EAX: pSlot_index
|
|
void DoRLDelete(int pSlot_index) {
|
|
int i;
|
|
int new_len;
|
|
}
|
|
|
|
// Offset: 6208
|
|
// Size: 70
|
|
// EAX: pSlot_index
|
|
void DoRLInsert(int pSlot_index) {
|
|
}
|
|
|
|
// Offset: 6280
|
|
// Size: 137
|
|
// EAX: pSlot_index
|
|
void DoRLCursorLeft(int pSlot_index) {
|
|
}
|
|
|
|
// Offset: 6420
|
|
// Size: 101
|
|
// EAX: pSlot_index
|
|
void DoRLCursorRight(int pSlot_index) {
|
|
}
|
|
|
|
// Offset: 6524
|
|
// Size: 323
|
|
// EAX: pChar
|
|
// EDX: pSlot_index
|
|
void DoRLTypeLetter(int pChar, int pSlot_index) {
|
|
int i;
|
|
int new_len;
|
|
}
|
|
|
|
// Offset: 6848
|
|
// Size: 123
|
|
// EAX: pSlot_index
|
|
void StopTyping(int pSlot_index) {
|
|
int i;
|
|
}
|
|
|
|
// Offset: 6972
|
|
// Size: 121
|
|
// EAX: pSlot_index
|
|
// EDX: pRevert_str
|
|
void RevertTyping(int pSlot_index, char *pRevert_str) {
|
|
int i;
|
|
}
|
|
|
|
// Offset: 7096
|
|
// Size: 91
|
|
// EAX: pSlot_index
|
|
// EDX: pText
|
|
// EBX: pVisible_length
|
|
void StartTyping(int pSlot_index, char *pText, int pVisible_length) {
|
|
}
|
|
|
|
// Offset: 7188
|
|
// Size: 176
|
|
// EAX: pSlot_index
|
|
// EDX: pKey
|
|
void TypeKey(int pSlot_index, char pKey) {
|
|
}
|
|
|
|
// Offset: 7364
|
|
// Size: 69
|
|
// EAX: pSlot_index
|
|
// EDX: pX_coord
|
|
// EBX: pY_coord
|
|
void SetSlotXY(int pSlot_index, int pX_coord, int pY_coord) {
|
|
}
|
|
|
|
// Offset: 7436
|
|
// Size: 93
|
|
// EAX: pDestn
|
|
// EDX: pMax_length
|
|
void GetTypedName(char *pDestn, int pMax_length) {
|
|
}
|
|
|
|
// Offset: 7532
|
|
// Size: 212
|
|
// EAX: pSlot_index
|
|
void KillCursor(int pSlot_index) {
|
|
int x_coord;
|
|
int y_coord;
|
|
int i;
|
|
int j;
|
|
tRolling_letter *let;
|
|
tRolling_type new_type;
|
|
}
|
|
|
|
// Offset: 7744
|
|
// Size: 44
|
|
void EdgeTriggerModeOn() {
|
|
}
|
|
|
|
// Offset: 7788
|
|
// Size: 44
|
|
void EdgeTriggerModeOff() {
|
|
}
|
|
|