project64/Source/nragev20/Interface.h

93 lines
2.4 KiB
C
Raw Normal View History

2020-02-09 11:36:49 +00:00
/*
N-Rage`s Dinput8 Plugin
(C) 2002, 2006 Norbert Wladyka
2016-01-27 09:11:59 +00:00
Author`s Email: norbert.wladyka@chello.at
Website: http://go.to/nrage
2016-01-27 09:11:59 +00:00
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.
2016-01-27 09:11:59 +00:00
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.
2016-01-27 09:11:59 +00:00
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
2016-01-27 09:11:59 +00:00
*/
#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
2020-02-09 11:36:49 +00:00
#define WM_USER_UPDATE WM_USER + 1
// Application internal message
2020-02-09 11:36:49 +00:00
#define WM_USER_READVALUES WM_USER + 2
2016-01-27 09:11:59 +00:00
2020-02-09 11:36:49 +00:00
#define CONFIGTHRESHOLD 50
#define MOUSE_THRESHOLD 10
2016-01-27 09:11:59 +00:00
2020-02-09 11:36:49 +00:00
#define SC_SCANSUCCEED 0x01
#define SC_SCANESCAPE 0x10
2016-01-27 09:11:59 +00:00
2020-02-09 11:36:49 +00:00
#define TIMER_BUTTON 1
2016-01-27 09:11:59 +00:00
2020-02-09 11:36:49 +00:00
#define INTERVAL_BUTTON 20
#define INTERVAL_RUMBLETEST 20
2016-01-27 09:11:59 +00:00
2020-02-09 11:36:49 +00:00
#define MPAK_FORMATABLE 0x01
#define MPAK_READABLE 0x02
#define MPAK_WRITEABLE 0x04
2016-01-27 09:11:59 +00:00
2020-02-09 11:36:49 +00:00
#define MPAK_OK 0x07
#define MPAK_INUSE 0x12
#define MPAK_WRONGSIZE 0x27
#define MPAK_DAMAGED 0x71
#define MPAK_ERROR 0x81
#define MPAK_NOSELECTION 0xF0
2016-01-27 09:11:59 +00:00
2020-02-09 11:36:49 +00:00
#define BSET_CONTROLS 1
#define BSET_SHORTCUTS 2
2016-01-27 09:11:59 +00:00
typedef struct _IFDEVICE
{
2020-02-09 11:36:49 +00:00
TCHAR szProductName[MAX_PATH+1];
BYTE bProductCounter;
2016-01-27 09:11:59 +00:00
} IFDEVICE, *LPIFDEVICE;
typedef struct _INTERFACEVALUES
{
2020-02-09 11:36:49 +00:00
BYTE ChosenTab;
CONTROLLER Controllers[4];
IFDEVICE FFDevices[4];
SHORTCUTS Shortcuts;
LANGID Language;
bool fDisplayShortPop;
2016-01-27 09:11:59 +00:00
} INTERFACEVALUES, *LPINTERFACEVALUES;
2020-02-09 11:36:49 +00:00
#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
2016-01-27 09:11:59 +00:00
extern INTERFACEVALUES *g_ivConfig;
#endif // _NRINTERFACE_