2000-11-05 21:25:02 +01:00
|
|
|
/* DirectInput Device
|
|
|
|
*
|
|
|
|
* Copyright 1998 Marcus Meissner
|
|
|
|
* Copyright 1998,1999 Lionel Ulmer
|
|
|
|
*
|
2002-03-10 00:29:33 +01:00
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library 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
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
2000-11-05 21:25:02 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
/* This file contains all the Device specific functions that can be used as stubs
|
|
|
|
by real device implementations.
|
|
|
|
|
|
|
|
It also contains all the helper functions.
|
|
|
|
*/
|
|
|
|
#include "config.h"
|
|
|
|
|
2003-09-06 01:08:26 +02:00
|
|
|
#include <stdarg.h>
|
2001-01-26 21:43:40 +01:00
|
|
|
#include <string.h>
|
2002-03-10 00:29:33 +01:00
|
|
|
#include "wine/debug.h"
|
2003-06-16 22:22:13 +02:00
|
|
|
#include "wine/unicode.h"
|
2003-09-06 01:08:26 +02:00
|
|
|
#include "windef.h"
|
2000-11-05 21:25:02 +01:00
|
|
|
#include "winbase.h"
|
|
|
|
#include "winerror.h"
|
|
|
|
#include "dinput.h"
|
|
|
|
#include "device_private.h"
|
|
|
|
|
2002-03-10 00:29:33 +01:00
|
|
|
WINE_DEFAULT_DEBUG_CHANNEL(dinput);
|
2000-11-05 21:25:02 +01:00
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* Various debugging tools
|
|
|
|
*/
|
|
|
|
void _dump_cooperativelevel_DI(DWORD dwFlags) {
|
|
|
|
int i;
|
|
|
|
const struct {
|
|
|
|
DWORD mask;
|
|
|
|
char *name;
|
|
|
|
} flags[] = {
|
|
|
|
#define FE(x) { x, #x},
|
|
|
|
FE(DISCL_BACKGROUND)
|
|
|
|
FE(DISCL_EXCLUSIVE)
|
|
|
|
FE(DISCL_FOREGROUND)
|
|
|
|
FE(DISCL_NONEXCLUSIVE)
|
|
|
|
#undef FE
|
|
|
|
};
|
|
|
|
for (i=0;i<sizeof(flags)/sizeof(flags[0]);i++)
|
|
|
|
if (flags[i].mask & dwFlags)
|
|
|
|
DPRINTF("%s ",flags[i].name);
|
|
|
|
DPRINTF("\n");
|
|
|
|
}
|
|
|
|
|
|
|
|
void _dump_EnumObjects_flags(DWORD dwFlags) {
|
|
|
|
int i;
|
|
|
|
const struct {
|
|
|
|
DWORD mask;
|
|
|
|
char *name;
|
|
|
|
} flags[] = {
|
|
|
|
#define FE(x) { x, #x},
|
|
|
|
FE(DIDFT_ABSAXIS)
|
|
|
|
FE(DIDFT_ALL)
|
|
|
|
FE(DIDFT_AXIS)
|
|
|
|
FE(DIDFT_BUTTON)
|
|
|
|
FE(DIDFT_COLLECTION)
|
|
|
|
FE(DIDFT_FFACTUATOR)
|
|
|
|
FE(DIDFT_FFEFFECTTRIGGER)
|
|
|
|
FE(DIDFT_NOCOLLECTION)
|
|
|
|
FE(DIDFT_NODATA)
|
|
|
|
FE(DIDFT_OUTPUT)
|
|
|
|
FE(DIDFT_POV)
|
|
|
|
FE(DIDFT_PSHBUTTON)
|
|
|
|
FE(DIDFT_RELAXIS)
|
|
|
|
FE(DIDFT_TGLBUTTON)
|
|
|
|
#undef FE
|
|
|
|
};
|
|
|
|
if (dwFlags == DIDFT_ALL) {
|
|
|
|
DPRINTF("DIDFT_ALL");
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
for (i=0;i<sizeof(flags)/sizeof(flags[0]);i++)
|
|
|
|
if (flags[i].mask & dwFlags)
|
|
|
|
DPRINTF("%s ",flags[i].name);
|
|
|
|
if (dwFlags & DIDFT_INSTANCEMASK)
|
|
|
|
DPRINTF("Instance(%04lx) ", dwFlags >> 8);
|
|
|
|
}
|
|
|
|
|
|
|
|
void _dump_DIPROPHEADER(DIPROPHEADER *diph) {
|
|
|
|
DPRINTF(" - dwObj = 0x%08lx\n", diph->dwObj);
|
|
|
|
DPRINTF(" - dwHow = %s\n",
|
|
|
|
((diph->dwHow == DIPH_DEVICE) ? "DIPH_DEVICE" :
|
|
|
|
((diph->dwHow == DIPH_BYOFFSET) ? "DIPH_BYOFFSET" :
|
|
|
|
((diph->dwHow == DIPH_BYID)) ? "DIPH_BYID" : "unknown")));
|
|
|
|
}
|
|
|
|
|
|
|
|
void _dump_OBJECTINSTANCEA(DIDEVICEOBJECTINSTANCEA *ddoi) {
|
|
|
|
if (TRACE_ON(dinput)) {
|
2003-02-12 22:27:00 +01:00
|
|
|
DPRINTF(" - enumerating : %s - %2ld - 0x%08lx - %s\n",
|
|
|
|
debugstr_guid(&ddoi->guidType), ddoi->dwOfs, ddoi->dwType, ddoi->tszName);
|
2000-11-05 21:25:02 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2003-06-16 22:22:13 +02:00
|
|
|
void _dump_OBJECTINSTANCEW(DIDEVICEOBJECTINSTANCEW *ddoi) {
|
|
|
|
if (TRACE_ON(dinput)) {
|
|
|
|
DPRINTF(" - enumerating : %s - %2ld - 0x%08lx - %s\n",
|
|
|
|
debugstr_guid(&ddoi->guidType), ddoi->dwOfs, ddoi->dwType, debugstr_w(ddoi->tszName));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2000-11-05 21:25:02 +01:00
|
|
|
/* Conversion between internal data buffer and external data buffer */
|
|
|
|
void fill_DataFormat(void *out, void *in, DataFormat *df) {
|
|
|
|
int i;
|
|
|
|
char *in_c = (char *) in;
|
|
|
|
char *out_c = (char *) out;
|
|
|
|
|
|
|
|
if (df->dt == NULL) {
|
|
|
|
/* This means that the app uses Wine's internal data format */
|
|
|
|
memcpy(out, in, df->internal_format_size);
|
|
|
|
} else {
|
|
|
|
for (i = 0; i < df->size; i++) {
|
|
|
|
if (df->dt[i].offset_in >= 0) {
|
|
|
|
switch (df->dt[i].size) {
|
|
|
|
case 1:
|
|
|
|
TRACE("Copying (c) to %d from %d (value %d)\n",
|
|
|
|
df->dt[i].offset_out, df->dt[i].offset_in, *((char *) (in_c + df->dt[i].offset_in)));
|
|
|
|
*((char *) (out_c + df->dt[i].offset_out)) = *((char *) (in_c + df->dt[i].offset_in));
|
|
|
|
break;
|
2002-06-01 01:06:46 +02:00
|
|
|
|
2000-11-05 21:25:02 +01:00
|
|
|
case 2:
|
|
|
|
TRACE("Copying (s) to %d from %d (value %d)\n",
|
|
|
|
df->dt[i].offset_out, df->dt[i].offset_in, *((short *) (in_c + df->dt[i].offset_in)));
|
|
|
|
*((short *) (out_c + df->dt[i].offset_out)) = *((short *) (in_c + df->dt[i].offset_in));
|
|
|
|
break;
|
2002-06-01 01:06:46 +02:00
|
|
|
|
2000-11-05 21:25:02 +01:00
|
|
|
case 4:
|
|
|
|
TRACE("Copying (i) to %d from %d (value %d)\n",
|
|
|
|
df->dt[i].offset_out, df->dt[i].offset_in, *((int *) (in_c + df->dt[i].offset_in)));
|
|
|
|
*((int *) (out_c + df->dt[i].offset_out)) = *((int *) (in_c + df->dt[i].offset_in));
|
|
|
|
break;
|
2002-06-01 01:06:46 +02:00
|
|
|
|
2000-11-05 21:25:02 +01:00
|
|
|
default:
|
|
|
|
memcpy((out_c + df->dt[i].offset_out), (in_c + df->dt[i].offset_in), df->dt[i].size);
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
switch (df->dt[i].size) {
|
|
|
|
case 1:
|
|
|
|
TRACE("Copying (c) to %d default value %d\n",
|
|
|
|
df->dt[i].offset_out, df->dt[i].value);
|
|
|
|
*((char *) (out_c + df->dt[i].offset_out)) = (char) df->dt[i].value;
|
|
|
|
break;
|
2002-06-01 01:06:46 +02:00
|
|
|
|
2000-11-05 21:25:02 +01:00
|
|
|
case 2:
|
|
|
|
TRACE("Copying (s) to %d default value %d\n",
|
|
|
|
df->dt[i].offset_out, df->dt[i].value);
|
|
|
|
*((short *) (out_c + df->dt[i].offset_out)) = (short) df->dt[i].value;
|
|
|
|
break;
|
2002-06-01 01:06:46 +02:00
|
|
|
|
2000-11-05 21:25:02 +01:00
|
|
|
case 4:
|
|
|
|
TRACE("Copying (i) to %d default value %d\n",
|
|
|
|
df->dt[i].offset_out, df->dt[i].value);
|
|
|
|
*((int *) (out_c + df->dt[i].offset_out)) = (int) df->dt[i].value;
|
|
|
|
break;
|
2002-06-01 01:06:46 +02:00
|
|
|
|
2000-11-05 21:25:02 +01:00
|
|
|
default:
|
|
|
|
memset((out_c + df->dt[i].offset_out), df->dt[i].size, 0);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
DataFormat *create_DataFormat(DIDATAFORMAT *wine_format, LPCDIDATAFORMAT asked_format, int *offset) {
|
|
|
|
DataFormat *ret;
|
|
|
|
DataTransform *dt;
|
|
|
|
int i, j;
|
|
|
|
int same = 1;
|
|
|
|
int *done;
|
|
|
|
int index = 0;
|
2002-06-01 01:06:46 +02:00
|
|
|
|
2000-11-05 21:25:02 +01:00
|
|
|
ret = (DataFormat *) HeapAlloc(GetProcessHeap(), 0, sizeof(DataFormat));
|
2002-06-01 01:06:46 +02:00
|
|
|
|
2000-11-05 21:25:02 +01:00
|
|
|
done = (int *) HeapAlloc(GetProcessHeap(), 0, sizeof(int) * asked_format->dwNumObjs);
|
|
|
|
memset(done, 0, sizeof(int) * asked_format->dwNumObjs);
|
|
|
|
|
|
|
|
dt = (DataTransform *) HeapAlloc(GetProcessHeap(), 0, asked_format->dwNumObjs * sizeof(DataTransform));
|
|
|
|
|
2002-04-02 21:47:30 +02:00
|
|
|
TRACE("Creating DataTransform : \n");
|
2002-06-01 01:06:46 +02:00
|
|
|
|
2000-11-05 21:25:02 +01:00
|
|
|
for (i = 0; i < wine_format->dwNumObjs; i++) {
|
|
|
|
offset[i] = -1;
|
2002-06-01 01:06:46 +02:00
|
|
|
|
2000-11-05 21:25:02 +01:00
|
|
|
for (j = 0; j < asked_format->dwNumObjs; j++) {
|
|
|
|
if (done[j] == 1)
|
|
|
|
continue;
|
2002-06-01 01:06:46 +02:00
|
|
|
|
2000-11-05 21:25:02 +01:00
|
|
|
if (((asked_format->rgodf[j].pguid == NULL) || (IsEqualGUID(wine_format->rgodf[i].pguid, asked_format->rgodf[j].pguid)))
|
|
|
|
&&
|
|
|
|
(wine_format->rgodf[i].dwType & asked_format->rgodf[j].dwType)) {
|
|
|
|
|
|
|
|
done[j] = 1;
|
|
|
|
|
2002-06-01 01:06:46 +02:00
|
|
|
TRACE("Matching : \n");
|
2000-11-05 21:25:02 +01:00
|
|
|
TRACE(" - Asked (%d) : %s - Ofs = %3ld - (Type = 0x%02x | Instance = %04x)\n",
|
2002-06-01 01:06:46 +02:00
|
|
|
j, debugstr_guid(asked_format->rgodf[j].pguid),
|
2000-11-05 21:25:02 +01:00
|
|
|
asked_format->rgodf[j].dwOfs,
|
|
|
|
DIDFT_GETTYPE(asked_format->rgodf[j].dwType), DIDFT_GETINSTANCE(asked_format->rgodf[j].dwType));
|
2002-06-01 01:06:46 +02:00
|
|
|
|
2000-11-05 21:25:02 +01:00
|
|
|
TRACE(" - Wine (%d) : %s - Ofs = %3ld - (Type = 0x%02x | Instance = %04x)\n",
|
2002-06-01 01:06:46 +02:00
|
|
|
j, debugstr_guid(wine_format->rgodf[i].pguid),
|
2000-11-05 21:25:02 +01:00
|
|
|
wine_format->rgodf[i].dwOfs,
|
|
|
|
DIDFT_GETTYPE(wine_format->rgodf[i].dwType), DIDFT_GETINSTANCE(wine_format->rgodf[i].dwType));
|
2002-06-01 01:06:46 +02:00
|
|
|
|
2000-11-05 21:25:02 +01:00
|
|
|
if (wine_format->rgodf[i].dwType & DIDFT_BUTTON)
|
|
|
|
dt[index].size = sizeof(BYTE);
|
|
|
|
else
|
|
|
|
dt[index].size = sizeof(DWORD);
|
|
|
|
dt[index].offset_in = wine_format ->rgodf[i].dwOfs;
|
|
|
|
dt[index].offset_out = asked_format->rgodf[j].dwOfs;
|
|
|
|
dt[index].value = 0;
|
|
|
|
index++;
|
2002-06-01 01:06:46 +02:00
|
|
|
|
2000-11-05 21:25:02 +01:00
|
|
|
if (wine_format->rgodf[i].dwOfs != asked_format->rgodf[j].dwOfs)
|
|
|
|
same = 0;
|
|
|
|
|
|
|
|
offset[i] = asked_format->rgodf[j].dwOfs;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (j == asked_format->dwNumObjs)
|
|
|
|
same = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
TRACE("Setting to default value :\n");
|
|
|
|
for (j = 0; j < asked_format->dwNumObjs; j++) {
|
|
|
|
if (done[j] == 0) {
|
|
|
|
TRACE(" - Asked (%d) : %s - Ofs = %3ld - (Type = 0x%02x | Instance = %04x)\n",
|
2002-06-01 01:06:46 +02:00
|
|
|
j, debugstr_guid(asked_format->rgodf[j].pguid),
|
2000-11-05 21:25:02 +01:00
|
|
|
asked_format->rgodf[j].dwOfs,
|
|
|
|
DIDFT_GETTYPE(asked_format->rgodf[j].dwType), DIDFT_GETINSTANCE(asked_format->rgodf[j].dwType));
|
|
|
|
|
2002-06-01 01:06:46 +02:00
|
|
|
|
2000-11-05 21:25:02 +01:00
|
|
|
if (asked_format->rgodf[j].dwType & DIDFT_BUTTON)
|
|
|
|
dt[index].size = sizeof(BYTE);
|
|
|
|
else
|
|
|
|
dt[index].size = sizeof(DWORD);
|
|
|
|
dt[index].offset_in = -1;
|
|
|
|
dt[index].offset_out = asked_format->rgodf[j].dwOfs;
|
|
|
|
dt[index].value = 0;
|
|
|
|
index++;
|
|
|
|
|
|
|
|
same = 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
ret->internal_format_size = wine_format->dwDataSize;
|
|
|
|
ret->size = index;
|
|
|
|
if (same) {
|
|
|
|
ret->dt = NULL;
|
|
|
|
HeapFree(GetProcessHeap(), 0, dt);
|
|
|
|
} else {
|
|
|
|
ret->dt = dt;
|
|
|
|
}
|
2002-06-01 01:06:46 +02:00
|
|
|
|
2000-11-05 21:25:02 +01:00
|
|
|
HeapFree(GetProcessHeap(), 0, done);
|
|
|
|
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2003-06-16 22:22:13 +02:00
|
|
|
BOOL DIEnumDevicesCallbackAtoW(LPCDIDEVICEOBJECTINSTANCEA lpddi, LPVOID lpvRef) {
|
|
|
|
DIDEVICEOBJECTINSTANCEW ddtmp;
|
|
|
|
device_enumobjects_AtoWcb_data* data;
|
|
|
|
|
|
|
|
data = (device_enumobjects_AtoWcb_data*) lpvRef;
|
|
|
|
|
|
|
|
memset(&ddtmp, 0, sizeof(DIDEVICEINSTANCEW));
|
|
|
|
|
|
|
|
ddtmp.dwSize = sizeof(DIDEVICEINSTANCEW);
|
|
|
|
ddtmp.guidType = lpddi->guidType;
|
|
|
|
ddtmp.dwOfs = lpddi->dwOfs;
|
|
|
|
ddtmp.dwType = lpddi->dwType;
|
|
|
|
ddtmp.dwFlags = lpddi->dwFlags;
|
|
|
|
MultiByteToWideChar(CP_ACP, 0, lpddi->tszName, -1, ddtmp.tszName, MAX_PATH);
|
|
|
|
|
|
|
|
if (lpddi->dwSize == sizeof(DIDEVICEINSTANCEA)) {
|
|
|
|
/**
|
|
|
|
* if dwSize < sizeof(DIDEVICEINSTANCEA of DInput version >= 5)
|
|
|
|
* force feedback and other newer datas aren't available
|
|
|
|
*/
|
|
|
|
ddtmp.dwFFMaxForce = lpddi->dwFFMaxForce;
|
|
|
|
ddtmp.dwFFForceResolution = lpddi->dwFFForceResolution;
|
|
|
|
ddtmp.wCollectionNumber = lpddi->wCollectionNumber;
|
|
|
|
ddtmp.wDesignatorIndex = lpddi->wDesignatorIndex;
|
|
|
|
ddtmp.wUsagePage = lpddi->wUsagePage;
|
|
|
|
ddtmp.wUsage = lpddi->wUsage;
|
|
|
|
ddtmp.dwDimension = lpddi->dwDimension;
|
|
|
|
ddtmp.wExponent = lpddi->wExponent;
|
|
|
|
ddtmp.wReserved = lpddi->wReserved;
|
|
|
|
}
|
|
|
|
return data->lpCallBack(&ddtmp, data->lpvRef);
|
|
|
|
}
|
|
|
|
|
2000-11-05 21:25:02 +01:00
|
|
|
/******************************************************************************
|
|
|
|
* IDirectInputDeviceA
|
|
|
|
*/
|
|
|
|
|
|
|
|
HRESULT WINAPI IDirectInputDevice2AImpl_SetDataFormat(
|
2002-06-14 02:39:44 +02:00
|
|
|
LPDIRECTINPUTDEVICE8A iface,LPCDIDATAFORMAT df
|
2000-11-05 21:25:02 +01:00
|
|
|
) {
|
|
|
|
int i;
|
|
|
|
ICOM_THIS(IDirectInputDevice2AImpl,iface);
|
|
|
|
|
|
|
|
TRACE("(this=%p,%p)\n",This,df);
|
2002-06-01 01:06:46 +02:00
|
|
|
|
2000-11-05 21:25:02 +01:00
|
|
|
TRACE("df.dwSize=%ld\n",df->dwSize);
|
|
|
|
TRACE("(df.dwObjsize=%ld)\n",df->dwObjSize);
|
|
|
|
TRACE("(df.dwFlags=0x%08lx)\n",df->dwFlags);
|
|
|
|
TRACE("(df.dwDataSize=%ld)\n",df->dwDataSize);
|
|
|
|
TRACE("(df.dwNumObjs=%ld)\n",df->dwNumObjs);
|
2002-06-01 01:06:46 +02:00
|
|
|
|
2000-11-05 21:25:02 +01:00
|
|
|
for (i=0;i<df->dwNumObjs;i++) {
|
|
|
|
TRACE("df.rgodf[%d].guid %s\n",i,debugstr_guid(df->rgodf[i].pguid));
|
|
|
|
TRACE("df.rgodf[%d].dwOfs %ld\n",i,df->rgodf[i].dwOfs);
|
|
|
|
TRACE("dwType 0x%02x,dwInstance %d\n",DIDFT_GETTYPE(df->rgodf[i].dwType),DIDFT_GETINSTANCE(df->rgodf[i].dwType));
|
|
|
|
TRACE("df.rgodf[%d].dwFlags 0x%08lx\n",i,df->rgodf[i].dwFlags);
|
|
|
|
}
|
2003-06-13 20:55:41 +02:00
|
|
|
return DI_OK;
|
2000-11-05 21:25:02 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
HRESULT WINAPI IDirectInputDevice2AImpl_SetCooperativeLevel(
|
2002-06-14 02:39:44 +02:00
|
|
|
LPDIRECTINPUTDEVICE8A iface,HWND hwnd,DWORD dwflags
|
2000-11-05 21:25:02 +01:00
|
|
|
) {
|
|
|
|
ICOM_THIS(IDirectInputDevice2AImpl,iface);
|
|
|
|
TRACE("(this=%p,0x%08lx,0x%08lx)\n",This,(DWORD)hwnd,dwflags);
|
2003-02-12 02:13:31 +01:00
|
|
|
if (TRACE_ON(dinput)) {
|
|
|
|
TRACE(" cooperative level : ");
|
|
|
|
_dump_cooperativelevel_DI(dwflags);
|
|
|
|
}
|
2003-06-13 20:55:41 +02:00
|
|
|
return DI_OK;
|
2000-11-05 21:25:02 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
HRESULT WINAPI IDirectInputDevice2AImpl_SetEventNotification(
|
2002-06-14 02:39:44 +02:00
|
|
|
LPDIRECTINPUTDEVICE8A iface,HANDLE hnd
|
2000-11-05 21:25:02 +01:00
|
|
|
) {
|
|
|
|
ICOM_THIS(IDirectInputDevice2AImpl,iface);
|
|
|
|
FIXME("(this=%p,0x%08lx): stub\n",This,(DWORD)hnd);
|
2003-06-13 20:55:41 +02:00
|
|
|
return DI_OK;
|
2000-11-05 21:25:02 +01:00
|
|
|
}
|
|
|
|
|
2002-06-14 02:39:44 +02:00
|
|
|
ULONG WINAPI IDirectInputDevice2AImpl_Release(LPDIRECTINPUTDEVICE8A iface)
|
2000-11-05 21:25:02 +01:00
|
|
|
{
|
|
|
|
ICOM_THIS(IDirectInputDevice2AImpl,iface);
|
|
|
|
This->ref--;
|
|
|
|
if (This->ref)
|
|
|
|
return This->ref;
|
|
|
|
HeapFree(GetProcessHeap(),0,This);
|
2003-06-13 20:55:41 +02:00
|
|
|
return DI_OK;
|
2000-11-05 21:25:02 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
HRESULT WINAPI IDirectInputDevice2AImpl_QueryInterface(
|
2002-06-14 02:39:44 +02:00
|
|
|
LPDIRECTINPUTDEVICE8A iface,REFIID riid,LPVOID *ppobj
|
2000-11-05 21:25:02 +01:00
|
|
|
)
|
|
|
|
{
|
|
|
|
ICOM_THIS(IDirectInputDevice2AImpl,iface);
|
|
|
|
|
|
|
|
TRACE("(this=%p,%s,%p)\n",This,debugstr_guid(riid),ppobj);
|
|
|
|
if (IsEqualGUID(&IID_IUnknown,riid)) {
|
|
|
|
IDirectInputDevice2_AddRef(iface);
|
|
|
|
*ppobj = This;
|
2003-06-13 20:55:41 +02:00
|
|
|
return DI_OK;
|
2000-11-05 21:25:02 +01:00
|
|
|
}
|
|
|
|
if (IsEqualGUID(&IID_IDirectInputDeviceA,riid)) {
|
|
|
|
IDirectInputDevice2_AddRef(iface);
|
|
|
|
*ppobj = This;
|
2003-06-13 20:55:41 +02:00
|
|
|
return DI_OK;
|
2000-11-05 21:25:02 +01:00
|
|
|
}
|
2003-06-13 18:32:16 +02:00
|
|
|
if (IsEqualGUID(&IID_IDirectInputDevice2A,riid)) {
|
|
|
|
IDirectInputDevice2_AddRef(iface);
|
|
|
|
*ppobj = This;
|
2003-06-13 20:55:41 +02:00
|
|
|
return DI_OK;
|
2003-06-13 18:32:16 +02:00
|
|
|
}
|
2003-04-30 00:47:04 +02:00
|
|
|
if (IsEqualGUID(&IID_IDirectInputDevice7A,riid)) {
|
|
|
|
IDirectInputDevice7_AddRef(iface);
|
2000-11-05 21:25:02 +01:00
|
|
|
*ppobj = This;
|
2003-06-13 20:55:41 +02:00
|
|
|
return DI_OK;
|
2000-11-05 21:25:02 +01:00
|
|
|
}
|
|
|
|
TRACE("Unsupported interface !\n");
|
|
|
|
return E_FAIL;
|
|
|
|
}
|
|
|
|
|
2003-06-16 22:22:13 +02:00
|
|
|
HRESULT WINAPI IDirectInputDevice2WImpl_QueryInterface(
|
|
|
|
LPDIRECTINPUTDEVICE8W iface,REFIID riid,LPVOID *ppobj
|
|
|
|
)
|
|
|
|
{
|
|
|
|
ICOM_THIS(IDirectInputDevice2AImpl,iface);
|
|
|
|
|
|
|
|
TRACE("(this=%p,%s,%p)\n",This,debugstr_guid(riid),ppobj);
|
|
|
|
if (IsEqualGUID(&IID_IUnknown,riid)) {
|
|
|
|
IDirectInputDevice2_AddRef(iface);
|
|
|
|
*ppobj = This;
|
|
|
|
return DI_OK;
|
|
|
|
}
|
|
|
|
if (IsEqualGUID(&IID_IDirectInputDeviceW,riid)) {
|
|
|
|
IDirectInputDevice2_AddRef(iface);
|
|
|
|
*ppobj = This;
|
|
|
|
return DI_OK;
|
|
|
|
}
|
|
|
|
if (IsEqualGUID(&IID_IDirectInputDevice2W,riid)) {
|
|
|
|
IDirectInputDevice2_AddRef(iface);
|
|
|
|
*ppobj = This;
|
|
|
|
return DI_OK;
|
|
|
|
}
|
|
|
|
if (IsEqualGUID(&IID_IDirectInputDevice7W,riid)) {
|
|
|
|
IDirectInputDevice7_AddRef(iface);
|
|
|
|
*ppobj = This;
|
|
|
|
return DI_OK;
|
|
|
|
}
|
|
|
|
TRACE("Unsupported interface !\n");
|
|
|
|
return E_FAIL;
|
|
|
|
}
|
|
|
|
|
2000-11-05 21:25:02 +01:00
|
|
|
ULONG WINAPI IDirectInputDevice2AImpl_AddRef(
|
2002-06-14 02:39:44 +02:00
|
|
|
LPDIRECTINPUTDEVICE8A iface)
|
2000-11-05 21:25:02 +01:00
|
|
|
{
|
|
|
|
ICOM_THIS(IDirectInputDevice2AImpl,iface);
|
|
|
|
return ++This->ref;
|
|
|
|
}
|
|
|
|
|
|
|
|
HRESULT WINAPI IDirectInputDevice2AImpl_EnumObjects(
|
2002-06-14 02:39:44 +02:00
|
|
|
LPDIRECTINPUTDEVICE8A iface,
|
2000-11-05 21:25:02 +01:00
|
|
|
LPDIENUMDEVICEOBJECTSCALLBACKA lpCallback,
|
|
|
|
LPVOID lpvRef,
|
|
|
|
DWORD dwFlags)
|
|
|
|
{
|
|
|
|
FIXME("(this=%p,%p,%p,%08lx): stub!\n", iface, lpCallback, lpvRef, dwFlags);
|
|
|
|
if (TRACE_ON(dinput)) {
|
|
|
|
DPRINTF(" - flags = ");
|
|
|
|
_dump_EnumObjects_flags(dwFlags);
|
|
|
|
DPRINTF("\n");
|
|
|
|
}
|
2002-06-01 01:06:46 +02:00
|
|
|
|
2000-11-05 21:25:02 +01:00
|
|
|
return DI_OK;
|
|
|
|
}
|
2002-06-01 01:06:46 +02:00
|
|
|
|
2003-06-16 22:22:13 +02:00
|
|
|
HRESULT WINAPI IDirectInputDevice2WImpl_EnumObjects(
|
|
|
|
LPDIRECTINPUTDEVICE8W iface,
|
|
|
|
LPDIENUMDEVICEOBJECTSCALLBACKW lpCallback,
|
|
|
|
LPVOID lpvRef,
|
|
|
|
DWORD dwFlags)
|
|
|
|
{
|
|
|
|
FIXME("(this=%p,%p,%p,%08lx): stub!\n", iface, lpCallback, lpvRef, dwFlags);
|
|
|
|
if (TRACE_ON(dinput)) {
|
|
|
|
DPRINTF(" - flags = ");
|
|
|
|
_dump_EnumObjects_flags(dwFlags);
|
|
|
|
DPRINTF("\n");
|
|
|
|
}
|
|
|
|
|
|
|
|
return DI_OK;
|
|
|
|
}
|
|
|
|
|
2000-11-05 21:25:02 +01:00
|
|
|
HRESULT WINAPI IDirectInputDevice2AImpl_GetProperty(
|
2002-06-14 02:39:44 +02:00
|
|
|
LPDIRECTINPUTDEVICE8A iface,
|
2000-11-05 21:25:02 +01:00
|
|
|
REFGUID rguid,
|
|
|
|
LPDIPROPHEADER pdiph)
|
|
|
|
{
|
|
|
|
FIXME("(this=%p,%s,%p): stub!\n",
|
|
|
|
iface, debugstr_guid(rguid), pdiph);
|
2002-06-01 01:06:46 +02:00
|
|
|
|
2000-11-05 21:25:02 +01:00
|
|
|
if (TRACE_ON(dinput))
|
|
|
|
_dump_DIPROPHEADER(pdiph);
|
2002-06-01 01:06:46 +02:00
|
|
|
|
2000-11-05 21:25:02 +01:00
|
|
|
return DI_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
HRESULT WINAPI IDirectInputDevice2AImpl_GetObjectInfo(
|
2002-06-14 02:39:44 +02:00
|
|
|
LPDIRECTINPUTDEVICE8A iface,
|
2000-11-05 21:25:02 +01:00
|
|
|
LPDIDEVICEOBJECTINSTANCEA pdidoi,
|
|
|
|
DWORD dwObj,
|
|
|
|
DWORD dwHow)
|
|
|
|
{
|
|
|
|
FIXME("(this=%p,%p,%ld,0x%08lx): stub!\n",
|
|
|
|
iface, pdidoi, dwObj, dwHow);
|
2002-06-01 01:06:46 +02:00
|
|
|
|
2000-11-05 21:25:02 +01:00
|
|
|
return DI_OK;
|
|
|
|
}
|
2002-06-01 01:06:46 +02:00
|
|
|
|
2003-06-16 22:22:13 +02:00
|
|
|
HRESULT WINAPI IDirectInputDevice2WImpl_GetObjectInfo(
|
|
|
|
LPDIRECTINPUTDEVICE8W iface,
|
|
|
|
LPDIDEVICEOBJECTINSTANCEW pdidoi,
|
|
|
|
DWORD dwObj,
|
|
|
|
DWORD dwHow)
|
|
|
|
{
|
|
|
|
FIXME("(this=%p,%p,%ld,0x%08lx): stub!\n",
|
|
|
|
iface, pdidoi, dwObj, dwHow);
|
|
|
|
|
|
|
|
return DI_OK;
|
|
|
|
}
|
|
|
|
|
2000-11-05 21:25:02 +01:00
|
|
|
HRESULT WINAPI IDirectInputDevice2AImpl_GetDeviceInfo(
|
2002-06-14 02:39:44 +02:00
|
|
|
LPDIRECTINPUTDEVICE8A iface,
|
2000-11-05 21:25:02 +01:00
|
|
|
LPDIDEVICEINSTANCEA pdidi)
|
|
|
|
{
|
|
|
|
FIXME("(this=%p,%p): stub!\n",
|
|
|
|
iface, pdidi);
|
2002-06-01 01:06:46 +02:00
|
|
|
|
2000-11-05 21:25:02 +01:00
|
|
|
return DI_OK;
|
|
|
|
}
|
2003-06-16 22:22:13 +02:00
|
|
|
HRESULT WINAPI IDirectInputDevice2WImpl_GetDeviceInfo(
|
|
|
|
LPDIRECTINPUTDEVICE8W iface,
|
|
|
|
LPDIDEVICEINSTANCEW pdidi)
|
|
|
|
{
|
|
|
|
FIXME("(this=%p,%p): stub!\n",
|
|
|
|
iface, pdidi);
|
|
|
|
|
|
|
|
return DI_OK;
|
|
|
|
}
|
2002-06-01 01:06:46 +02:00
|
|
|
|
2000-11-05 21:25:02 +01:00
|
|
|
HRESULT WINAPI IDirectInputDevice2AImpl_RunControlPanel(
|
2002-06-14 02:39:44 +02:00
|
|
|
LPDIRECTINPUTDEVICE8A iface,
|
2000-11-05 21:25:02 +01:00
|
|
|
HWND hwndOwner,
|
|
|
|
DWORD dwFlags)
|
|
|
|
{
|
2002-10-19 01:48:57 +02:00
|
|
|
FIXME("(this=%p,%p,0x%08lx): stub!\n",
|
2000-11-05 21:25:02 +01:00
|
|
|
iface, hwndOwner, dwFlags);
|
2002-06-01 01:06:46 +02:00
|
|
|
|
2000-11-05 21:25:02 +01:00
|
|
|
return DI_OK;
|
|
|
|
}
|
2002-06-01 01:06:46 +02:00
|
|
|
|
2000-11-05 21:25:02 +01:00
|
|
|
HRESULT WINAPI IDirectInputDevice2AImpl_Initialize(
|
2002-06-14 02:39:44 +02:00
|
|
|
LPDIRECTINPUTDEVICE8A iface,
|
2000-11-05 21:25:02 +01:00
|
|
|
HINSTANCE hinst,
|
|
|
|
DWORD dwVersion,
|
|
|
|
REFGUID rguid)
|
|
|
|
{
|
2002-10-19 01:48:57 +02:00
|
|
|
FIXME("(this=%p,%p,%ld,%s): stub!\n",
|
2000-11-05 21:25:02 +01:00
|
|
|
iface, hinst, dwVersion, debugstr_guid(rguid));
|
|
|
|
return DI_OK;
|
|
|
|
}
|
2002-06-01 01:06:46 +02:00
|
|
|
|
2000-11-05 21:25:02 +01:00
|
|
|
/******************************************************************************
|
|
|
|
* IDirectInputDevice2A
|
|
|
|
*/
|
|
|
|
|
|
|
|
HRESULT WINAPI IDirectInputDevice2AImpl_CreateEffect(
|
2002-06-14 02:39:44 +02:00
|
|
|
LPDIRECTINPUTDEVICE8A iface,
|
2000-11-05 21:25:02 +01:00
|
|
|
REFGUID rguid,
|
|
|
|
LPCDIEFFECT lpeff,
|
|
|
|
LPDIRECTINPUTEFFECT *ppdef,
|
|
|
|
LPUNKNOWN pUnkOuter)
|
|
|
|
{
|
|
|
|
FIXME("(this=%p,%s,%p,%p,%p): stub!\n",
|
|
|
|
iface, debugstr_guid(rguid), lpeff, ppdef, pUnkOuter);
|
|
|
|
return DI_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
HRESULT WINAPI IDirectInputDevice2AImpl_EnumEffects(
|
2002-06-14 02:39:44 +02:00
|
|
|
LPDIRECTINPUTDEVICE8A iface,
|
2000-11-05 21:25:02 +01:00
|
|
|
LPDIENUMEFFECTSCALLBACKA lpCallback,
|
|
|
|
LPVOID lpvRef,
|
|
|
|
DWORD dwFlags)
|
|
|
|
{
|
|
|
|
FIXME("(this=%p,%p,%p,0x%08lx): stub!\n",
|
|
|
|
iface, lpCallback, lpvRef, dwFlags);
|
2002-06-01 01:06:46 +02:00
|
|
|
|
2000-11-05 21:25:02 +01:00
|
|
|
if (lpCallback)
|
|
|
|
lpCallback(NULL, lpvRef);
|
|
|
|
return DI_OK;
|
|
|
|
}
|
|
|
|
|
2003-06-16 22:22:13 +02:00
|
|
|
HRESULT WINAPI IDirectInputDevice2WImpl_EnumEffects(
|
|
|
|
LPDIRECTINPUTDEVICE8W iface,
|
|
|
|
LPDIENUMEFFECTSCALLBACKW lpCallback,
|
|
|
|
LPVOID lpvRef,
|
|
|
|
DWORD dwFlags)
|
|
|
|
{
|
|
|
|
FIXME("(this=%p,%p,%p,0x%08lx): stub!\n",
|
|
|
|
iface, lpCallback, lpvRef, dwFlags);
|
|
|
|
|
|
|
|
if (lpCallback)
|
|
|
|
lpCallback(NULL, lpvRef);
|
|
|
|
return DI_OK;
|
|
|
|
}
|
|
|
|
|
2000-11-05 21:25:02 +01:00
|
|
|
HRESULT WINAPI IDirectInputDevice2AImpl_GetEffectInfo(
|
2002-06-14 02:39:44 +02:00
|
|
|
LPDIRECTINPUTDEVICE8A iface,
|
2000-11-05 21:25:02 +01:00
|
|
|
LPDIEFFECTINFOA lpdei,
|
|
|
|
REFGUID rguid)
|
|
|
|
{
|
|
|
|
FIXME("(this=%p,%p,%s): stub!\n",
|
|
|
|
iface, lpdei, debugstr_guid(rguid));
|
|
|
|
return DI_OK;
|
|
|
|
}
|
|
|
|
|
2003-06-16 22:22:13 +02:00
|
|
|
HRESULT WINAPI IDirectInputDevice2WImpl_GetEffectInfo(
|
|
|
|
LPDIRECTINPUTDEVICE8W iface,
|
|
|
|
LPDIEFFECTINFOW lpdei,
|
|
|
|
REFGUID rguid)
|
|
|
|
{
|
|
|
|
FIXME("(this=%p,%p,%s): stub!\n",
|
|
|
|
iface, lpdei, debugstr_guid(rguid));
|
|
|
|
return DI_OK;
|
|
|
|
}
|
|
|
|
|
2000-11-05 21:25:02 +01:00
|
|
|
HRESULT WINAPI IDirectInputDevice2AImpl_GetForceFeedbackState(
|
2002-06-14 02:39:44 +02:00
|
|
|
LPDIRECTINPUTDEVICE8A iface,
|
2000-11-05 21:25:02 +01:00
|
|
|
LPDWORD pdwOut)
|
|
|
|
{
|
|
|
|
FIXME("(this=%p,%p): stub!\n",
|
|
|
|
iface, pdwOut);
|
|
|
|
return DI_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
HRESULT WINAPI IDirectInputDevice2AImpl_SendForceFeedbackCommand(
|
2002-06-14 02:39:44 +02:00
|
|
|
LPDIRECTINPUTDEVICE8A iface,
|
2000-11-05 21:25:02 +01:00
|
|
|
DWORD dwFlags)
|
|
|
|
{
|
|
|
|
FIXME("(this=%p,0x%08lx): stub!\n",
|
|
|
|
iface, dwFlags);
|
|
|
|
return DI_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
HRESULT WINAPI IDirectInputDevice2AImpl_EnumCreatedEffectObjects(
|
2002-06-14 02:39:44 +02:00
|
|
|
LPDIRECTINPUTDEVICE8A iface,
|
2000-11-05 21:25:02 +01:00
|
|
|
LPDIENUMCREATEDEFFECTOBJECTSCALLBACK lpCallback,
|
|
|
|
LPVOID lpvRef,
|
|
|
|
DWORD dwFlags)
|
|
|
|
{
|
|
|
|
FIXME("(this=%p,%p,%p,0x%08lx): stub!\n",
|
|
|
|
iface, lpCallback, lpvRef, dwFlags);
|
|
|
|
if (lpCallback)
|
|
|
|
lpCallback(NULL, lpvRef);
|
|
|
|
return DI_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
HRESULT WINAPI IDirectInputDevice2AImpl_Escape(
|
2002-06-14 02:39:44 +02:00
|
|
|
LPDIRECTINPUTDEVICE8A iface,
|
2000-11-05 21:25:02 +01:00
|
|
|
LPDIEFFESCAPE lpDIEEsc)
|
|
|
|
{
|
|
|
|
FIXME("(this=%p,%p): stub!\n",
|
|
|
|
iface, lpDIEEsc);
|
|
|
|
return DI_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
HRESULT WINAPI IDirectInputDevice2AImpl_Poll(
|
2002-06-14 02:39:44 +02:00
|
|
|
LPDIRECTINPUTDEVICE8A iface)
|
2000-11-05 21:25:02 +01:00
|
|
|
{
|
2001-11-06 23:26:26 +01:00
|
|
|
/* Because wine devices do not need to be polled, just return DI_NOEFFECT */
|
|
|
|
return DI_NOEFFECT;
|
2000-11-05 21:25:02 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
HRESULT WINAPI IDirectInputDevice2AImpl_SendDeviceData(
|
2002-06-14 02:39:44 +02:00
|
|
|
LPDIRECTINPUTDEVICE8A iface,
|
2000-11-05 21:25:02 +01:00
|
|
|
DWORD cbObjectData,
|
2002-06-14 02:39:44 +02:00
|
|
|
LPCDIDEVICEOBJECTDATA rgdod,
|
2000-11-05 21:25:02 +01:00
|
|
|
LPDWORD pdwInOut,
|
|
|
|
DWORD dwFlags)
|
|
|
|
{
|
|
|
|
FIXME("(this=%p,0x%08lx,%p,%p,0x%08lx): stub!\n",
|
|
|
|
iface, cbObjectData, rgdod, pdwInOut, dwFlags);
|
2002-06-01 01:06:46 +02:00
|
|
|
|
2000-11-05 21:25:02 +01:00
|
|
|
return DI_OK;
|
|
|
|
}
|
|
|
|
|
2002-06-14 02:39:44 +02:00
|
|
|
HRESULT WINAPI IDirectInputDevice7AImpl_EnumEffectsInFile(LPDIRECTINPUTDEVICE8A iface,
|
2000-11-05 21:25:02 +01:00
|
|
|
LPCSTR lpszFileName,
|
|
|
|
LPDIENUMEFFECTSINFILECALLBACK pec,
|
|
|
|
LPVOID pvRef,
|
|
|
|
DWORD dwFlags)
|
|
|
|
{
|
|
|
|
FIXME("(%p)->(%s,%p,%p,%08lx): stub !\n", iface, lpszFileName, pec, pvRef, dwFlags);
|
|
|
|
|
|
|
|
return DI_OK;
|
|
|
|
}
|
|
|
|
|
2003-06-16 22:22:13 +02:00
|
|
|
HRESULT WINAPI IDirectInputDevice7WImpl_EnumEffectsInFile(LPDIRECTINPUTDEVICE8W iface,
|
|
|
|
LPCWSTR lpszFileName,
|
|
|
|
LPDIENUMEFFECTSINFILECALLBACK pec,
|
|
|
|
LPVOID pvRef,
|
|
|
|
DWORD dwFlags)
|
|
|
|
{
|
|
|
|
FIXME("(%p)->(%s,%p,%p,%08lx): stub !\n", iface, debugstr_w(lpszFileName), pec, pvRef, dwFlags);
|
|
|
|
|
|
|
|
return DI_OK;
|
|
|
|
}
|
|
|
|
|
2002-06-14 02:39:44 +02:00
|
|
|
HRESULT WINAPI IDirectInputDevice7AImpl_WriteEffectToFile(LPDIRECTINPUTDEVICE8A iface,
|
2000-11-05 21:25:02 +01:00
|
|
|
LPCSTR lpszFileName,
|
|
|
|
DWORD dwEntries,
|
|
|
|
LPDIFILEEFFECT rgDiFileEft,
|
|
|
|
DWORD dwFlags)
|
|
|
|
{
|
|
|
|
FIXME("(%p)->(%s,%08lx,%p,%08lx): stub !\n", iface, lpszFileName, dwEntries, rgDiFileEft, dwFlags);
|
2002-06-01 01:06:46 +02:00
|
|
|
|
2000-11-05 21:25:02 +01:00
|
|
|
return DI_OK;
|
|
|
|
}
|
2002-06-14 02:39:44 +02:00
|
|
|
|
2003-06-16 22:22:13 +02:00
|
|
|
HRESULT WINAPI IDirectInputDevice7WImpl_WriteEffectToFile(LPDIRECTINPUTDEVICE8W iface,
|
|
|
|
LPCWSTR lpszFileName,
|
|
|
|
DWORD dwEntries,
|
|
|
|
LPDIFILEEFFECT rgDiFileEft,
|
|
|
|
DWORD dwFlags)
|
|
|
|
{
|
|
|
|
FIXME("(%p)->(%s,%08lx,%p,%08lx): stub !\n", iface, debugstr_w(lpszFileName), dwEntries, rgDiFileEft, dwFlags);
|
|
|
|
|
|
|
|
return DI_OK;
|
|
|
|
}
|
|
|
|
|
2002-06-14 02:39:44 +02:00
|
|
|
HRESULT WINAPI IDirectInputDevice8AImpl_BuildActionMap(LPDIRECTINPUTDEVICE8A iface,
|
|
|
|
LPDIACTIONFORMATA lpdiaf,
|
|
|
|
LPCSTR lpszUserName,
|
|
|
|
DWORD dwFlags)
|
|
|
|
{
|
|
|
|
FIXME("(%p)->(%p,%s,%08lx): stub !\n", iface, lpdiaf, lpszUserName, dwFlags);
|
|
|
|
|
|
|
|
return DI_OK;
|
|
|
|
}
|
|
|
|
|
2003-06-16 22:22:13 +02:00
|
|
|
HRESULT WINAPI IDirectInputDevice8WImpl_BuildActionMap(LPDIRECTINPUTDEVICE8W iface,
|
|
|
|
LPDIACTIONFORMATW lpdiaf,
|
|
|
|
LPCWSTR lpszUserName,
|
|
|
|
DWORD dwFlags)
|
|
|
|
{
|
|
|
|
FIXME("(%p)->(%p,%s,%08lx): stub !\n", iface, lpdiaf, debugstr_w(lpszUserName), dwFlags);
|
|
|
|
|
|
|
|
return DI_OK;
|
|
|
|
}
|
|
|
|
|
2002-06-14 02:39:44 +02:00
|
|
|
HRESULT WINAPI IDirectInputDevice8AImpl_SetActionMap(LPDIRECTINPUTDEVICE8A iface,
|
|
|
|
LPDIACTIONFORMATA lpdiaf,
|
|
|
|
LPCSTR lpszUserName,
|
|
|
|
DWORD dwFlags)
|
|
|
|
{
|
|
|
|
FIXME("(%p)->(%p,%s,%08lx): stub !\n", iface, lpdiaf, lpszUserName, dwFlags);
|
|
|
|
|
|
|
|
return DI_OK;
|
|
|
|
}
|
|
|
|
|
2003-06-16 22:22:13 +02:00
|
|
|
HRESULT WINAPI IDirectInputDevice8WImpl_SetActionMap(LPDIRECTINPUTDEVICE8W iface,
|
|
|
|
LPDIACTIONFORMATW lpdiaf,
|
|
|
|
LPCWSTR lpszUserName,
|
|
|
|
DWORD dwFlags)
|
|
|
|
{
|
|
|
|
FIXME("(%p)->(%p,%s,%08lx): stub !\n", iface, lpdiaf, debugstr_w(lpszUserName), dwFlags);
|
|
|
|
|
|
|
|
return DI_OK;
|
|
|
|
}
|
|
|
|
|
2002-06-14 02:39:44 +02:00
|
|
|
HRESULT WINAPI IDirectInputDevice8AImpl_GetImageInfo(LPDIRECTINPUTDEVICE8A iface,
|
|
|
|
LPDIDEVICEIMAGEINFOHEADERA lpdiDevImageInfoHeader)
|
|
|
|
{
|
|
|
|
FIXME("(%p)->(%p): stub !\n", iface, lpdiDevImageInfoHeader);
|
|
|
|
|
|
|
|
return DI_OK;
|
|
|
|
}
|
2003-06-16 22:22:13 +02:00
|
|
|
|
|
|
|
HRESULT WINAPI IDirectInputDevice8WImpl_GetImageInfo(LPDIRECTINPUTDEVICE8W iface,
|
|
|
|
LPDIDEVICEIMAGEINFOHEADERW lpdiDevImageInfoHeader)
|
|
|
|
{
|
|
|
|
FIXME("(%p)->(%p): stub !\n", iface, lpdiDevImageInfoHeader);
|
|
|
|
|
|
|
|
return DI_OK;
|
|
|
|
}
|