Lionel Ulmer | 6301e94 | 2000-11-05 20:25:02 +0000 | [diff] [blame] | 1 | #ifndef __WINE_DLLS_DINPUT_DINPUT_PRIVATE_H |
| 2 | #define __WINE_DLLS_DINPUT_DINPUT_PRIVATE_H |
| 3 | |
| 4 | #include "winbase.h" |
| 5 | #include "dinput.h" |
| 6 | |
| 7 | /* Implementation specification */ |
| 8 | typedef struct IDirectInputAImpl IDirectInputAImpl; |
| 9 | struct IDirectInputAImpl |
| 10 | { |
| 11 | ICOM_VFIELD(IDirectInputA); |
| 12 | DWORD ref; |
| 13 | |
| 14 | /* Used to have an unique sequence number for all the events */ |
| 15 | DWORD evsequence; |
| 16 | }; |
| 17 | |
| 18 | /* Function called by all devices that Wine supports */ |
| 19 | typedef struct dinput_device { |
Marcus Meissner | c9b3b2e | 2000-12-12 00:38:58 +0000 | [diff] [blame] | 20 | INT pref; |
Lionel Ulmer | 6301e94 | 2000-11-05 20:25:02 +0000 | [diff] [blame] | 21 | BOOL (*enum_device)(DWORD dwDevType, DWORD dwFlags, LPCDIDEVICEINSTANCEA lpddi); |
| 22 | HRESULT (*create_device)(IDirectInputAImpl *dinput, REFGUID rguid, REFIID riid, LPDIRECTINPUTDEVICEA* pdev); |
| 23 | } dinput_device; |
| 24 | |
| 25 | extern void dinput_register_device(dinput_device *device) ; |
| 26 | |
| 27 | #endif /* __WINE_DLLS_DINPUT_DINPUT_PRIVATE_H */ |