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