-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinputdll.h
More file actions
35 lines (29 loc) · 1.28 KB
/
inputdll.h
File metadata and controls
35 lines (29 loc) · 1.28 KB
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
#ifndef __INPUTDLL_DOT_H__
#define __INPUTDLL_DOT_H__
#include "plugin.h"
BOOL LoadInputPlugin (char *libname);
void CloseInputPlugin ();
void InitINPPlugin ();
typedef struct {
HINSTANCE hinstLibInput; // hInstance to the INPUT Plugin Library
// True to the specs functions
void (__cdecl* CloseDLL )( void );
void (__cdecl* ControllerCommand )( int Control, BYTE * Command );
void (__cdecl* DllAbout )( HWND hParent );
void (__cdecl* DllConfig )( HWND hParent );
void (__cdecl* DllTest )( HWND hParent );
void (__cdecl* GetDllInfo )( PLUGIN_INFO * PluginInfo );
void (__cdecl* GetKeys )( int Control, BUTTONS * Keys );
void (__cdecl* InitiateControllers )( HWND hMainWindow, CONTROL Controls[4] );
void (__cdecl* ReadController )( int Control, BYTE * Command );
void (__cdecl* RomClosed )( void );
void (__cdecl* RomOpen )( void );
void (__cdecl* WM_KeyDown )( WPARAM wParam, LPARAM lParam );
void (__cdecl* WM_KeyUp )( WPARAM wParam, LPARAM lParam );
// Support Functions...
inline BOOL Load (char* libname) {return LoadInputPlugin(libname);} // Loads a plugin with the specified name
inline void Close () {CloseInputPlugin();} // Closes a previously loaded plugin
} INPUTDLL;
extern INPUTDLL inpdll;
extern CONTROL ContInfo[4];
#endif //__INPUTDLL_DOT_H__