-
Notifications
You must be signed in to change notification settings - Fork 24
/
CInput.cpp
78 lines (57 loc) · 2.13 KB
/
CInput.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
/*
This is a SAMP (0.3.7-R1) API project file.
Developer: LUCHARE <luchare.dev@gmail.com>
See more here https://github.com/LUCHARE/SAMP-API
Copyright (c) 2018 BlastHack Team <BlastHack.Net>. All rights reserved.
*/
#include "sampapi/0.3.7-R1/CInput.h"
SAMPAPI_BEGIN_V037R1
SAMPAPI_VAR CInput*& RefInputBox() {
return *(CInput**)GetAddress(0x21A0E8);
}
CInput::CInput(IDirect3DDevice9* pDevice) {
((void(__thiscall*)(CInput*, IDirect3DDevice9*))GetAddress(0x65730))(this, pDevice);
}
void CInput::GetRect(CRect* pRect) {
((void(__thiscall*)(CInput*, CRect*))GetAddress(0x657A0))(this, pRect);
}
void CInput::Open() {
((void(__thiscall*)(CInput*))GetAddress(0x657E0))(this);
}
void CInput::Close() {
((void(__thiscall*)(CInput*))GetAddress(0x658E0))(this);
}
void CInput::AddRecall(const char* pText) {
((void(__thiscall*)(CInput*, const char*))GetAddress(0x65930))(this, pText);
}
void CInput::RecallUp() {
((void(__thiscall*)(CInput*))GetAddress(0x65990))(this);
}
void CInput::RecallDown() {
((void(__thiscall*)(CInput*))GetAddress(0x65A00))(this);
}
void CInput::EnableCursor() {
((void(__thiscall*)(CInput*))GetAddress(0x65A50))(this);
}
CMDPROC CInput::GetCommandHandler(const char* pName) {
return ((CMDPROC(__thiscall*)(CInput*, const char*))GetAddress(0x65A70))(this, pName);
}
void CInput::SetDefaultCommand(CMDPROC pProc) {
((void(__thiscall*)(CInput*, CMDPROC))GetAddress(0x65AC0))(this, pProc);
}
void CInput::AddCommand(const char* pName, CMDPROC pProc) {
((void(__thiscall*)(CInput*, const char*, CMDPROC))GetAddress(0x65AD0))(this, pName, pProc);
}
int CInput::MsgProc(int uMsg, int wParam, int lParam) {
return ((int(__thiscall*)(CInput*, int, int, int))GetAddress(0x65B30))(this, uMsg, wParam, lParam);
}
void CInput::ResetDialogControls(CDXUTDialog* pGameUI) {
((void(__thiscall*)(CInput*, CDXUTDialog*))GetAddress(0x65BA0))(this, pGameUI);
}
void CInput::Send(const char* szString) {
((void(__thiscall*)(CInput*, const char*))GetAddress(0x65C60))(this, szString);
}
void CInput::ProcessInput() {
((void(__thiscall*)(CInput*))GetAddress(0x65D30))(this);
}
SAMPAPI_END