-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathInterface.h
93 lines (70 loc) · 2.32 KB
/
Interface.h
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
/*
N-Rage`s Dinput8 Plugin
(C) 2002, 2006 Norbert Wladyka
Author`s Email: [email protected]
Website: http://go.to/nrage
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef _NRINTERFACE_
#define _NRINTERFACE_
BOOL CALLBACK MainDlgProc( HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam );
void SetModifier( CONTROLLER *pcController );
void SetControllerDefaults( CONTROLLER *pcController );
// application internal message
#define WM_USER_UPDATE WM_USER + 1
// application internal message
#define WM_USER_READVALUES WM_USER + 2
#define CONFIGTHRESHOLD 50
#define MOUSE_THRESHOLD 10
#define SC_SCANSUCCEED 0x01
#define SC_SCANESCAPE 0x10
#define TIMER_BUTTON 1
#define INTERVAL_BUTTON 20
#define INTERVAL_RUMBLETEST 20
#define MPAK_FORMATABLE 0x01
#define MPAK_READABLE 0x02
#define MPAK_WRITEABLE 0x04
#define MPAK_OK 0x07
#define MPAK_INUSE 0x12
#define MPAK_WRONGSIZE 0x27
#define MPAK_DAMAGED 0x71
#define MPAK_ERROR 0x81
#define MPAK_NOSELECTION 0xF0
#define BSET_CONTROLS 1
#define BSET_SHORTCUTS 2
typedef struct _IFDEVICE
{
TCHAR szProductName[MAX_PATH+1];
BYTE bProductCounter;
} IFDEVICE, *LPIFDEVICE;
typedef struct _INTERFACEVALUES
{
BYTE ChosenTab;
CONTROLLER Controllers[4];
IFDEVICE FFDevices[4];
SHORTCUTS Shortcuts;
LANGID Language;
bool fDisplayShortPop;
} INTERFACEVALUES, *LPINTERFACEVALUES;
#define TAB_CONTROLLER1 0
#define TAB_CONTROLLER2 1
#define TAB_CONTROLLER3 2
#define TAB_CONTROLLER4 3
#define TAB_SHORTCUTS 4
#define TAB_FOLDERS 5
#define TAB_CONTROLS 0
#define TAB_DEVICES 1
#define TAB_MODIFIERS 2
#define TAB_PAK 3
extern INTERFACEVALUES *g_ivConfig;
#endif // _NRINTERFACE_