Rev 1 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 1 | pmbaty | 1 | #ifndef _INPUT_H_ |
| 2 | #define _INPUT_H_ |
||
| 3 | |||
| 4 | #include "dr_types.h" |
||
| 5 | |||
| 6 | // Variable leading zero |
||
| 7 | #ifdef DETHRACE_FIX_BUGS |
||
| 8 | #define VARLZEROINT "%0*d" |
||
| 9 | #else |
||
| 10 | #define VARLZEROINT "%0.*d" |
||
| 11 | #endif |
||
| 12 | |||
| 13 | extern int gEdge_trigger_mode; |
||
| 14 | extern tU32 gLast_poll_keys; |
||
| 15 | extern int gInsert_mode; |
||
| 16 | extern int gGo_ahead_keys[3]; |
||
| 17 | extern tJoy_array gJoy_array; |
||
| 18 | extern tKey_array gKey_array; |
||
| 19 | extern int gKey_poll_counter; |
||
| 20 | extern tRolling_letter* gRolling_letters; |
||
| 21 | extern int gCurrent_cursor; |
||
| 22 | extern int gCurrent_position; |
||
| 23 | extern int gLetter_x_coords[15]; |
||
| 24 | extern int gVisible_length; |
||
| 25 | extern int gLetter_y_coords[15]; |
||
| 26 | extern int gThe_key; |
||
| 27 | extern tU32 gLast_key_down_time; |
||
| 28 | extern int gThe_length; |
||
| 29 | extern tU32 gLast_roll; |
||
| 30 | extern int gLast_key_down; |
||
| 31 | extern int gKey_mapping[67]; |
||
| 32 | extern char gCurrent_typing[110]; |
||
| 33 | |||
| 34 | void SetJoystickArrays(int* pKeys, int pMark); |
||
| 35 | |||
| 36 | void PollKeys(void); |
||
| 37 | |||
| 38 | void CyclePollKeys(void); |
||
| 39 | |||
| 40 | void ResetPollKeys(void); |
||
| 41 | |||
| 42 | void CheckKeysForMouldiness(void); |
||
| 43 | |||
| 44 | int EitherMouseButtonDown(void); |
||
| 45 | |||
| 46 | tKey_down_result PDKeyDown2(int pKey_index); |
||
| 47 | |||
| 48 | int PDKeyDown(int pKey_index); |
||
| 49 | |||
| 50 | int PDKeyDown3(int pKey_index); |
||
| 51 | |||
| 52 | int PDAnyKeyDown(void); |
||
| 53 | |||
| 54 | int AnyKeyDown(void); |
||
| 55 | |||
| 56 | tU32* KevKeyService(void); |
||
| 57 | |||
| 58 | int OldKeyIsDown(int pKey_index); |
||
| 59 | |||
| 60 | int KeyIsDown(int pKey_index); |
||
| 61 | |||
| 62 | void WaitForNoKeys(void); |
||
| 63 | |||
| 64 | void WaitForAKey(void); |
||
| 65 | |||
| 66 | int CmdKeyDown(int pFKey_ID, int pCmd_key_ID); |
||
| 67 | |||
| 68 | void GetMousePosition(int* pX_coord, int* pY_coord); |
||
| 69 | |||
| 70 | void InitRollingLetters(void); |
||
| 71 | |||
| 72 | void EndRollingLetters(void); |
||
| 73 | |||
| 74 | int AddRollingLetter(char pChar, int pX, int pY, tRolling_type rolling_type); |
||
| 75 | |||
| 76 | void AddRollingString(char* pStr, int pX, int pY, tRolling_type rolling_type); |
||
| 77 | |||
| 78 | void AddRollingNumber(tU32 pNumber, int pWidth, int pX, int pY); |
||
| 79 | |||
| 80 | void RollLettersIn(void); |
||
| 81 | |||
| 82 | int ChangeCharTo(int pSlot_index, int pChar_index, char pNew_char); |
||
| 83 | |||
| 84 | void ChangeTextTo(int pXcoord, int pYcoord, char* pNew_str, char* pOld_str); |
||
| 85 | |||
| 86 | void SetRollingCursor(int pSlot_index); |
||
| 87 | |||
| 88 | void BlankSlot(int pIndex, int pName_length, int pVisible_length); |
||
| 89 | |||
| 90 | void DoRLBackspace(int pSlot_index); |
||
| 91 | |||
| 92 | void DoRLDelete(int pSlot_index); |
||
| 93 | |||
| 94 | void DoRLInsert(int pSlot_index); |
||
| 95 | |||
| 96 | void DoRLCursorLeft(int pSlot_index); |
||
| 97 | |||
| 98 | void DoRLCursorRight(int pSlot_index); |
||
| 99 | |||
| 100 | void DoRLTypeLetter(int pChar, int pSlot_index); |
||
| 101 | |||
| 102 | void StopTyping(int pSlot_index); |
||
| 103 | |||
| 104 | void RevertTyping(int pSlot_index, char* pRevert_str); |
||
| 105 | |||
| 106 | void StartTyping(int pSlot_index, char* pText, int pVisible_length); |
||
| 107 | |||
| 108 | void TypeKey(int pSlot_index, char pKey); |
||
| 109 | |||
| 110 | void SetSlotXY(int pSlot_index, int pX_coord, int pY_coord); |
||
| 111 | |||
| 112 | void GetTypedName(char* pDestn, int pMax_length); |
||
| 113 | |||
| 114 | void KillCursor(int pSlot_index); |
||
| 115 | |||
| 116 | void EdgeTriggerModeOn(void); |
||
| 117 | |||
| 118 | void EdgeTriggerModeOff(void); |
||
| 119 | |||
| 120 | #endif |