3 * Copyright 1998 Marcus Meissner
4 * Copyright 1998,1999 Lionel Ulmer
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 /* This file contains all the Device specific functions that can be used as stubs
23 by real device implementations.
25 It also contains all the helper functions.
31 #include "wine/debug.h"
32 #include "wine/unicode.h"
37 #include "device_private.h"
39 WINE_DEFAULT_DEBUG_CHANNEL(dinput);
41 /******************************************************************************
42 * Various debugging tools
44 void _dump_cooperativelevel_DI(DWORD dwFlags) {
45 if (TRACE_ON(dinput)) {
51 #define FE(x) { x, #x}
55 FE(DISCL_NONEXCLUSIVE)
58 for (i = 0; i < (sizeof(flags) / sizeof(flags[0])); i++)
59 if (flags[i].mask & dwFlags)
60 DPRINTF("%s ",flags[i].name);
65 void _dump_EnumObjects_flags(DWORD dwFlags) {
66 if (TRACE_ON(dinput)) {
73 #define FE(x) { x, #x}
82 FE(DIDFT_FFEFFECTTRIGGER),
84 FE(DIDFT_VENDORDEFINED),
89 type = (dwFlags & 0xFF0000FF);
90 instance = ((dwFlags >> 8) & 0xFFFF);
92 if (type == DIDFT_ALL) {
93 DPRINTF(" DIDFT_ALL");
95 for (i = 0; i < (sizeof(flags) / sizeof(flags[0])); i++) {
96 if (flags[i].mask & type) {
97 type &= ~flags[i].mask;
98 DPRINTF(" %s",flags[i].name);
102 DPRINTF(" (unhandled: %08lx)", type);
105 DPRINTF(" / Instance: ");
106 if (instance == ((DIDFT_ANYINSTANCE >> 8) & 0xFFFF)) {
107 DPRINTF("DIDFT_ANYINSTANCE");
109 DPRINTF("%3ld", instance);
114 void _dump_DIPROPHEADER(LPCDIPROPHEADER diph) {
115 if (TRACE_ON(dinput)) {
116 DPRINTF(" - dwObj = 0x%08lx\n", diph->dwObj);
117 DPRINTF(" - dwHow = %s\n",
118 ((diph->dwHow == DIPH_DEVICE) ? "DIPH_DEVICE" :
119 ((diph->dwHow == DIPH_BYOFFSET) ? "DIPH_BYOFFSET" :
120 ((diph->dwHow == DIPH_BYID)) ? "DIPH_BYID" : "unknown")));
124 void _dump_OBJECTINSTANCEA(DIDEVICEOBJECTINSTANCEA *ddoi) {
125 if (TRACE_ON(dinput)) {
126 DPRINTF(" - enumerating : %s ('%s') - %2ld - 0x%08lx - %s\n",
127 debugstr_guid(&ddoi->guidType), _dump_dinput_GUID(&ddoi->guidType), ddoi->dwOfs, ddoi->dwType, ddoi->tszName);
131 void _dump_OBJECTINSTANCEW(DIDEVICEOBJECTINSTANCEW *ddoi) {
132 if (TRACE_ON(dinput)) {
133 DPRINTF(" - enumerating : %s ('%s'), - %2ld - 0x%08lx - %s\n",
134 debugstr_guid(&ddoi->guidType), _dump_dinput_GUID(&ddoi->guidType), ddoi->dwOfs, ddoi->dwType, debugstr_w(ddoi->tszName));
138 /* This function is a helper to convert a GUID into any possible DInput GUID out there */
139 const char *_dump_dinput_GUID(const GUID *guid) {
141 static const struct {
145 #define FE(x) { &x, #x}
158 FE(GUID_SysKeyboard),
160 FE(GUID_ConstantForce),
166 FE(GUID_SawtoothDown),
176 for (i = 0; i < (sizeof(guids) / sizeof(guids[0])); i++) {
177 if (IsEqualGUID(guids[i].guid, guid)) {
178 return guids[i].name;
181 return "Unknown GUID";
184 void _dump_DIDATAFORMAT(const DIDATAFORMAT *df) {
187 TRACE("Dumping DIDATAFORMAT structure:\n");
188 TRACE(" - dwSize: %ld\n", df->dwSize);
189 if (df->dwSize != sizeof(DIDATAFORMAT)) {
190 WARN("Non-standard DIDATAFORMAT structure size (%ld instead of %d).\n", df->dwSize, sizeof(DIDATAFORMAT));
192 TRACE(" - dwObjsize: %ld\n", df->dwObjSize);
193 if (df->dwObjSize != sizeof(DIOBJECTDATAFORMAT)) {
194 WARN("Non-standard DIOBJECTDATAFORMAT structure size (%ld instead of %d).\n", df->dwObjSize, sizeof(DIOBJECTDATAFORMAT));
196 TRACE(" - dwFlags: 0x%08lx (", df->dwFlags);
197 switch (df->dwFlags) {
198 case DIDF_ABSAXIS: TRACE("DIDF_ABSAXIS"); break;
199 case DIDF_RELAXIS: TRACE("DIDF_RELAXIS"); break;
200 default: TRACE("unknown"); break;
203 TRACE(" - dwDataSize: %ld\n", df->dwDataSize);
204 TRACE(" - dwNumObjs: %ld\n", df->dwNumObjs);
206 for (i = 0; i < df->dwNumObjs; i++) {
207 TRACE(" - Object %d:\n", i);
208 TRACE(" * GUID: %s ('%s')\n", debugstr_guid(df->rgodf[i].pguid), _dump_dinput_GUID(df->rgodf[i].pguid));
209 TRACE(" * dwOfs: %ld\n", df->rgodf[i].dwOfs);
210 TRACE(" * dwType: 0x%08lx\n", df->rgodf[i].dwType);
211 TRACE(" "); _dump_EnumObjects_flags(df->rgodf[i].dwType); TRACE("\n");
212 TRACE(" * dwFlags: 0x%08lx\n", df->rgodf[i].dwFlags);
216 /* Conversion between internal data buffer and external data buffer */
217 void fill_DataFormat(void *out, const void *in, DataFormat *df) {
219 char *in_c = (char *) in;
220 char *out_c = (char *) out;
222 if (df->dt == NULL) {
223 /* This means that the app uses Wine's internal data format */
224 memcpy(out, in, df->internal_format_size);
226 for (i = 0; i < df->size; i++) {
227 if (df->dt[i].offset_in >= 0) {
228 switch (df->dt[i].size) {
230 TRACE("Copying (c) to %d from %d (value %d)\n",
231 df->dt[i].offset_out, df->dt[i].offset_in, *((char *) (in_c + df->dt[i].offset_in)));
232 *((char *) (out_c + df->dt[i].offset_out)) = *((char *) (in_c + df->dt[i].offset_in));
236 TRACE("Copying (s) to %d from %d (value %d)\n",
237 df->dt[i].offset_out, df->dt[i].offset_in, *((short *) (in_c + df->dt[i].offset_in)));
238 *((short *) (out_c + df->dt[i].offset_out)) = *((short *) (in_c + df->dt[i].offset_in));
242 TRACE("Copying (i) to %d from %d (value %d)\n",
243 df->dt[i].offset_out, df->dt[i].offset_in, *((int *) (in_c + df->dt[i].offset_in)));
244 *((int *) (out_c + df->dt[i].offset_out)) = *((int *) (in_c + df->dt[i].offset_in));
248 memcpy((out_c + df->dt[i].offset_out), (in_c + df->dt[i].offset_in), df->dt[i].size);
252 switch (df->dt[i].size) {
254 TRACE("Copying (c) to %d default value %d\n",
255 df->dt[i].offset_out, df->dt[i].value);
256 *((char *) (out_c + df->dt[i].offset_out)) = (char) df->dt[i].value;
260 TRACE("Copying (s) to %d default value %d\n",
261 df->dt[i].offset_out, df->dt[i].value);
262 *((short *) (out_c + df->dt[i].offset_out)) = (short) df->dt[i].value;
266 TRACE("Copying (i) to %d default value %d\n",
267 df->dt[i].offset_out, df->dt[i].value);
268 *((int *) (out_c + df->dt[i].offset_out)) = (int) df->dt[i].value;
272 memset((out_c + df->dt[i].offset_out), df->dt[i].size, 0);
280 void release_DataFormat(DataFormat * format)
282 TRACE("Deleting DataTransform : \n");
284 HeapFree(GetProcessHeap(), 0, format->dt);
287 DataFormat *create_DataFormat(const DIDATAFORMAT *wine_format, LPCDIDATAFORMAT asked_format, int *offset) {
296 ret = HeapAlloc(GetProcessHeap(), 0, sizeof(DataFormat));
298 done = HeapAlloc(GetProcessHeap(), 0, sizeof(int) * asked_format->dwNumObjs);
299 memset(done, 0, sizeof(int) * asked_format->dwNumObjs);
301 dt = HeapAlloc(GetProcessHeap(), 0, asked_format->dwNumObjs * sizeof(DataTransform));
303 TRACE("Creating DataTransform : \n");
305 for (i = 0; i < wine_format->dwNumObjs; i++) {
308 for (j = 0; j < asked_format->dwNumObjs; j++) {
312 if (/* Check if the application either requests any GUID and if not, it if matches
313 * the GUID of the Wine object.
315 ((asked_format->rgodf[j].pguid == NULL) ||
316 (wine_format->rgodf[i].pguid == NULL) ||
317 (IsEqualGUID(wine_format->rgodf[i].pguid, asked_format->rgodf[j].pguid)))
319 (/* Then check if it accepts any instance id, and if not, if it matches Wine's
322 (DIDFT_GETINSTANCE(asked_format->rgodf[j].dwType) == 0xFFFF) ||
323 (DIDFT_GETINSTANCE(asked_format->rgodf[j].dwType) == 0x00FF) || /* This is mentionned in no DX docs, but it works fine - tested on WinXP */
324 (DIDFT_GETINSTANCE(asked_format->rgodf[j].dwType) == DIDFT_GETINSTANCE(wine_format->rgodf[i].dwType)))
326 ( /* Then if the asked type matches the one Wine provides */
327 wine_format->rgodf[i].dwType & asked_format->rgodf[j].dwType)) {
331 TRACE("Matching : \n");
332 TRACE(" - Asked (%d) :\n", j);
333 TRACE(" * GUID: %s ('%s')\n",
334 debugstr_guid(asked_format->rgodf[j].pguid),
335 _dump_dinput_GUID(asked_format->rgodf[j].pguid));
336 TRACE(" * Offset: %3ld\n", asked_format->rgodf[j].dwOfs);
337 TRACE(" * dwType: %08lx\n", asked_format->rgodf[j].dwType);
338 TRACE(" "); _dump_EnumObjects_flags(asked_format->rgodf[j].dwType); TRACE("\n");
340 TRACE(" - Wine (%d) :\n", i);
341 TRACE(" * GUID: %s ('%s')\n",
342 debugstr_guid(wine_format->rgodf[i].pguid),
343 _dump_dinput_GUID(wine_format->rgodf[i].pguid));
344 TRACE(" * Offset: %3ld\n", wine_format->rgodf[i].dwOfs);
345 TRACE(" * dwType: %08lx\n", wine_format->rgodf[i].dwType);
346 TRACE(" "); _dump_EnumObjects_flags(wine_format->rgodf[i].dwType); TRACE("\n");
348 if (wine_format->rgodf[i].dwType & DIDFT_BUTTON)
349 dt[index].size = sizeof(BYTE);
351 dt[index].size = sizeof(DWORD);
352 dt[index].offset_in = wine_format->rgodf[i].dwOfs;
353 if (asked_format->rgodf[j].dwOfs < next) {
354 WARN("bad format: dwOfs=%ld, changing to %ld\n", asked_format->rgodf[j].dwOfs, next);
355 dt[index].offset_out = next;
358 dt[index].offset_out = asked_format->rgodf[j].dwOfs;
359 offset[i] = asked_format->rgodf[j].dwOfs;
362 next = next + dt[index].size;
364 if (wine_format->rgodf[i].dwOfs != dt[index].offset_out)
372 if (j == asked_format->dwNumObjs)
376 TRACE("Setting to default value :\n");
377 for (j = 0; j < asked_format->dwNumObjs; j++) {
379 TRACE(" - Asked (%d) :\n", j);
380 TRACE(" * GUID: %s ('%s')\n",
381 debugstr_guid(asked_format->rgodf[j].pguid),
382 _dump_dinput_GUID(asked_format->rgodf[j].pguid));
383 TRACE(" * Offset: %3ld\n", asked_format->rgodf[j].dwOfs);
384 TRACE(" * dwType: %08lx\n", asked_format->rgodf[j].dwType);
385 TRACE(" "); _dump_EnumObjects_flags(asked_format->rgodf[j].dwType); TRACE("\n");
387 if (asked_format->rgodf[j].dwType & DIDFT_BUTTON)
388 dt[index].size = sizeof(BYTE);
390 dt[index].size = sizeof(DWORD);
391 dt[index].offset_in = -1;
392 dt[index].offset_out = asked_format->rgodf[j].dwOfs;
400 ret->internal_format_size = wine_format->dwDataSize;
404 HeapFree(GetProcessHeap(), 0, dt);
409 HeapFree(GetProcessHeap(), 0, done);
414 BOOL DIEnumDevicesCallbackAtoW(LPCDIDEVICEOBJECTINSTANCEA lpddi, LPVOID lpvRef) {
415 DIDEVICEOBJECTINSTANCEW ddtmp;
416 device_enumobjects_AtoWcb_data* data;
418 data = (device_enumobjects_AtoWcb_data*) lpvRef;
420 memset(&ddtmp, 0, sizeof(ddtmp));
422 ddtmp.dwSize = sizeof(DIDEVICEINSTANCEW);
423 ddtmp.guidType = lpddi->guidType;
424 ddtmp.dwOfs = lpddi->dwOfs;
425 ddtmp.dwType = lpddi->dwType;
426 ddtmp.dwFlags = lpddi->dwFlags;
427 MultiByteToWideChar(CP_ACP, 0, lpddi->tszName, -1, ddtmp.tszName, MAX_PATH);
429 if (lpddi->dwSize == sizeof(DIDEVICEINSTANCEA)) {
431 * if dwSize < sizeof(DIDEVICEINSTANCEA of DInput version >= 5)
432 * force feedback and other newer datas aren't available
434 ddtmp.dwFFMaxForce = lpddi->dwFFMaxForce;
435 ddtmp.dwFFForceResolution = lpddi->dwFFForceResolution;
436 ddtmp.wCollectionNumber = lpddi->wCollectionNumber;
437 ddtmp.wDesignatorIndex = lpddi->wDesignatorIndex;
438 ddtmp.wUsagePage = lpddi->wUsagePage;
439 ddtmp.wUsage = lpddi->wUsage;
440 ddtmp.dwDimension = lpddi->dwDimension;
441 ddtmp.wExponent = lpddi->wExponent;
442 ddtmp.wReserved = lpddi->wReserved;
444 return data->lpCallBack(&ddtmp, data->lpvRef);
447 /******************************************************************************
448 * IDirectInputDeviceA
451 HRESULT WINAPI IDirectInputDevice2AImpl_SetDataFormat(
452 LPDIRECTINPUTDEVICE8A iface,LPCDIDATAFORMAT df
454 IDirectInputDevice2AImpl *This = (IDirectInputDevice2AImpl *)iface;
456 TRACE("(this=%p,%p)\n",This,df);
458 _dump_DIDATAFORMAT(df);
463 HRESULT WINAPI IDirectInputDevice2AImpl_SetCooperativeLevel(
464 LPDIRECTINPUTDEVICE8A iface,HWND hwnd,DWORD dwflags
466 IDirectInputDevice2AImpl *This = (IDirectInputDevice2AImpl *)iface;
467 TRACE("(this=%p,0x%08lx,0x%08lx)\n",This,(DWORD)hwnd,dwflags);
468 if (TRACE_ON(dinput)) {
469 TRACE(" cooperative level : ");
470 _dump_cooperativelevel_DI(dwflags);
475 HRESULT WINAPI IDirectInputDevice2AImpl_SetEventNotification(
476 LPDIRECTINPUTDEVICE8A iface,HANDLE hnd
478 IDirectInputDevice2AImpl *This = (IDirectInputDevice2AImpl *)iface;
479 FIXME("(this=%p,0x%08lx): stub\n",This,(DWORD)hnd);
483 ULONG WINAPI IDirectInputDevice2AImpl_Release(LPDIRECTINPUTDEVICE8A iface)
485 IDirectInputDevice2AImpl *This = (IDirectInputDevice2AImpl *)iface;
487 ref = InterlockedDecrement(&(This->ref));
489 HeapFree(GetProcessHeap(),0,This);
493 HRESULT WINAPI IDirectInputDevice2AImpl_QueryInterface(
494 LPDIRECTINPUTDEVICE8A iface,REFIID riid,LPVOID *ppobj
497 IDirectInputDevice2AImpl *This = (IDirectInputDevice2AImpl *)iface;
499 TRACE("(this=%p,%s,%p)\n",This,debugstr_guid(riid),ppobj);
500 if (IsEqualGUID(&IID_IUnknown,riid)) {
501 IDirectInputDevice2_AddRef(iface);
505 if (IsEqualGUID(&IID_IDirectInputDeviceA,riid)) {
506 IDirectInputDevice2_AddRef(iface);
510 if (IsEqualGUID(&IID_IDirectInputDevice2A,riid)) {
511 IDirectInputDevice2_AddRef(iface);
515 if (IsEqualGUID(&IID_IDirectInputDevice7A,riid)) {
516 IDirectInputDevice7_AddRef(iface);
520 TRACE("Unsupported interface !\n");
524 HRESULT WINAPI IDirectInputDevice2WImpl_QueryInterface(
525 LPDIRECTINPUTDEVICE8W iface,REFIID riid,LPVOID *ppobj
528 IDirectInputDevice2AImpl *This = (IDirectInputDevice2AImpl *)iface;
530 TRACE("(this=%p,%s,%p)\n",This,debugstr_guid(riid),ppobj);
531 if (IsEqualGUID(&IID_IUnknown,riid)) {
532 IDirectInputDevice2_AddRef(iface);
536 if (IsEqualGUID(&IID_IDirectInputDeviceW,riid)) {
537 IDirectInputDevice2_AddRef(iface);
541 if (IsEqualGUID(&IID_IDirectInputDevice2W,riid)) {
542 IDirectInputDevice2_AddRef(iface);
546 if (IsEqualGUID(&IID_IDirectInputDevice7W,riid)) {
547 IDirectInputDevice7_AddRef(iface);
551 TRACE("Unsupported interface !\n");
555 ULONG WINAPI IDirectInputDevice2AImpl_AddRef(
556 LPDIRECTINPUTDEVICE8A iface)
558 IDirectInputDevice2AImpl *This = (IDirectInputDevice2AImpl *)iface;
559 return InterlockedIncrement(&(This->ref));
562 HRESULT WINAPI IDirectInputDevice2AImpl_EnumObjects(
563 LPDIRECTINPUTDEVICE8A iface,
564 LPDIENUMDEVICEOBJECTSCALLBACKA lpCallback,
568 FIXME("(this=%p,%p,%p,%08lx): stub!\n", iface, lpCallback, lpvRef, dwFlags);
569 if (TRACE_ON(dinput)) {
570 DPRINTF(" - flags = ");
571 _dump_EnumObjects_flags(dwFlags);
578 HRESULT WINAPI IDirectInputDevice2WImpl_EnumObjects(
579 LPDIRECTINPUTDEVICE8W iface,
580 LPDIENUMDEVICEOBJECTSCALLBACKW lpCallback,
584 FIXME("(this=%p,%p,%p,%08lx): stub!\n", iface, lpCallback, lpvRef, dwFlags);
585 if (TRACE_ON(dinput)) {
586 DPRINTF(" - flags = ");
587 _dump_EnumObjects_flags(dwFlags);
594 HRESULT WINAPI IDirectInputDevice2AImpl_GetProperty(
595 LPDIRECTINPUTDEVICE8A iface,
597 LPDIPROPHEADER pdiph)
599 FIXME("(this=%p,%s,%p): stub!\n",
600 iface, debugstr_guid(rguid), pdiph);
602 if (TRACE_ON(dinput))
603 _dump_DIPROPHEADER(pdiph);
608 HRESULT WINAPI IDirectInputDevice2AImpl_GetObjectInfo(
609 LPDIRECTINPUTDEVICE8A iface,
610 LPDIDEVICEOBJECTINSTANCEA pdidoi,
614 FIXME("(this=%p,%p,%ld,0x%08lx): stub!\n",
615 iface, pdidoi, dwObj, dwHow);
620 HRESULT WINAPI IDirectInputDevice2WImpl_GetObjectInfo(
621 LPDIRECTINPUTDEVICE8W iface,
622 LPDIDEVICEOBJECTINSTANCEW pdidoi,
626 FIXME("(this=%p,%p,%ld,0x%08lx): stub!\n",
627 iface, pdidoi, dwObj, dwHow);
632 HRESULT WINAPI IDirectInputDevice2AImpl_GetDeviceInfo(
633 LPDIRECTINPUTDEVICE8A iface,
634 LPDIDEVICEINSTANCEA pdidi)
636 FIXME("(this=%p,%p): stub!\n",
642 HRESULT WINAPI IDirectInputDevice2WImpl_GetDeviceInfo(
643 LPDIRECTINPUTDEVICE8W iface,
644 LPDIDEVICEINSTANCEW pdidi)
646 FIXME("(this=%p,%p): stub!\n",
652 HRESULT WINAPI IDirectInputDevice2AImpl_RunControlPanel(
653 LPDIRECTINPUTDEVICE8A iface,
657 FIXME("(this=%p,%p,0x%08lx): stub!\n",
658 iface, hwndOwner, dwFlags);
663 HRESULT WINAPI IDirectInputDevice2AImpl_Initialize(
664 LPDIRECTINPUTDEVICE8A iface,
669 FIXME("(this=%p,%p,%ld,%s): stub!\n",
670 iface, hinst, dwVersion, debugstr_guid(rguid));
674 /******************************************************************************
675 * IDirectInputDevice2A
678 HRESULT WINAPI IDirectInputDevice2AImpl_CreateEffect(
679 LPDIRECTINPUTDEVICE8A iface,
682 LPDIRECTINPUTEFFECT *ppdef,
685 FIXME("(this=%p,%s,%p,%p,%p): stub!\n",
686 iface, debugstr_guid(rguid), lpeff, ppdef, pUnkOuter);
690 HRESULT WINAPI IDirectInputDevice2AImpl_EnumEffects(
691 LPDIRECTINPUTDEVICE8A iface,
692 LPDIENUMEFFECTSCALLBACKA lpCallback,
696 FIXME("(this=%p,%p,%p,0x%08lx): stub!\n",
697 iface, lpCallback, lpvRef, dwFlags);
702 HRESULT WINAPI IDirectInputDevice2WImpl_EnumEffects(
703 LPDIRECTINPUTDEVICE8W iface,
704 LPDIENUMEFFECTSCALLBACKW lpCallback,
708 FIXME("(this=%p,%p,%p,0x%08lx): stub!\n",
709 iface, lpCallback, lpvRef, dwFlags);
714 HRESULT WINAPI IDirectInputDevice2AImpl_GetEffectInfo(
715 LPDIRECTINPUTDEVICE8A iface,
716 LPDIEFFECTINFOA lpdei,
719 FIXME("(this=%p,%p,%s): stub!\n",
720 iface, lpdei, debugstr_guid(rguid));
724 HRESULT WINAPI IDirectInputDevice2WImpl_GetEffectInfo(
725 LPDIRECTINPUTDEVICE8W iface,
726 LPDIEFFECTINFOW lpdei,
729 FIXME("(this=%p,%p,%s): stub!\n",
730 iface, lpdei, debugstr_guid(rguid));
734 HRESULT WINAPI IDirectInputDevice2AImpl_GetForceFeedbackState(
735 LPDIRECTINPUTDEVICE8A iface,
738 FIXME("(this=%p,%p): stub!\n",
743 HRESULT WINAPI IDirectInputDevice2AImpl_SendForceFeedbackCommand(
744 LPDIRECTINPUTDEVICE8A iface,
747 FIXME("(this=%p,0x%08lx): stub!\n",
752 HRESULT WINAPI IDirectInputDevice2AImpl_EnumCreatedEffectObjects(
753 LPDIRECTINPUTDEVICE8A iface,
754 LPDIENUMCREATEDEFFECTOBJECTSCALLBACK lpCallback,
758 FIXME("(this=%p,%p,%p,0x%08lx): stub!\n",
759 iface, lpCallback, lpvRef, dwFlags);
763 HRESULT WINAPI IDirectInputDevice2AImpl_Escape(
764 LPDIRECTINPUTDEVICE8A iface,
765 LPDIEFFESCAPE lpDIEEsc)
767 FIXME("(this=%p,%p): stub!\n",
772 HRESULT WINAPI IDirectInputDevice2AImpl_Poll(
773 LPDIRECTINPUTDEVICE8A iface)
775 /* Because wine devices do not need to be polled, just return DI_NOEFFECT */
779 HRESULT WINAPI IDirectInputDevice2AImpl_SendDeviceData(
780 LPDIRECTINPUTDEVICE8A iface,
782 LPCDIDEVICEOBJECTDATA rgdod,
786 FIXME("(this=%p,0x%08lx,%p,%p,0x%08lx): stub!\n",
787 iface, cbObjectData, rgdod, pdwInOut, dwFlags);
792 HRESULT WINAPI IDirectInputDevice7AImpl_EnumEffectsInFile(LPDIRECTINPUTDEVICE8A iface,
794 LPDIENUMEFFECTSINFILECALLBACK pec,
798 FIXME("(%p)->(%s,%p,%p,%08lx): stub !\n", iface, lpszFileName, pec, pvRef, dwFlags);
803 HRESULT WINAPI IDirectInputDevice7WImpl_EnumEffectsInFile(LPDIRECTINPUTDEVICE8W iface,
804 LPCWSTR lpszFileName,
805 LPDIENUMEFFECTSINFILECALLBACK pec,
809 FIXME("(%p)->(%s,%p,%p,%08lx): stub !\n", iface, debugstr_w(lpszFileName), pec, pvRef, dwFlags);
814 HRESULT WINAPI IDirectInputDevice7AImpl_WriteEffectToFile(LPDIRECTINPUTDEVICE8A iface,
817 LPDIFILEEFFECT rgDiFileEft,
820 FIXME("(%p)->(%s,%08lx,%p,%08lx): stub !\n", iface, lpszFileName, dwEntries, rgDiFileEft, dwFlags);
825 HRESULT WINAPI IDirectInputDevice7WImpl_WriteEffectToFile(LPDIRECTINPUTDEVICE8W iface,
826 LPCWSTR lpszFileName,
828 LPDIFILEEFFECT rgDiFileEft,
831 FIXME("(%p)->(%s,%08lx,%p,%08lx): stub !\n", iface, debugstr_w(lpszFileName), dwEntries, rgDiFileEft, dwFlags);
836 HRESULT WINAPI IDirectInputDevice8AImpl_BuildActionMap(LPDIRECTINPUTDEVICE8A iface,
837 LPDIACTIONFORMATA lpdiaf,
841 FIXME("(%p)->(%p,%s,%08lx): stub !\n", iface, lpdiaf, lpszUserName, dwFlags);
846 HRESULT WINAPI IDirectInputDevice8WImpl_BuildActionMap(LPDIRECTINPUTDEVICE8W iface,
847 LPDIACTIONFORMATW lpdiaf,
848 LPCWSTR lpszUserName,
851 FIXME("(%p)->(%p,%s,%08lx): stub !\n", iface, lpdiaf, debugstr_w(lpszUserName), dwFlags);
856 HRESULT WINAPI IDirectInputDevice8AImpl_SetActionMap(LPDIRECTINPUTDEVICE8A iface,
857 LPDIACTIONFORMATA lpdiaf,
861 FIXME("(%p)->(%p,%s,%08lx): stub !\n", iface, lpdiaf, lpszUserName, dwFlags);
866 HRESULT WINAPI IDirectInputDevice8WImpl_SetActionMap(LPDIRECTINPUTDEVICE8W iface,
867 LPDIACTIONFORMATW lpdiaf,
868 LPCWSTR lpszUserName,
871 FIXME("(%p)->(%p,%s,%08lx): stub !\n", iface, lpdiaf, debugstr_w(lpszUserName), dwFlags);
876 HRESULT WINAPI IDirectInputDevice8AImpl_GetImageInfo(LPDIRECTINPUTDEVICE8A iface,
877 LPDIDEVICEIMAGEINFOHEADERA lpdiDevImageInfoHeader)
879 FIXME("(%p)->(%p): stub !\n", iface, lpdiDevImageInfoHeader);
884 HRESULT WINAPI IDirectInputDevice8WImpl_GetImageInfo(LPDIRECTINPUTDEVICE8W iface,
885 LPDIDEVICEIMAGEINFOHEADERW lpdiDevImageInfoHeader)
887 FIXME("(%p)->(%p): stub !\n", iface, lpdiDevImageInfoHeader);