diff --git a/CodingStyleCPP.vssettings b/CodingStyleCPP.vssettings new file mode 100644 index 0000000..f1582c5 --- /dev/null +++ b/CodingStyleCPP.vssettings @@ -0,0 +1 @@ +4truetruetruetrue2truetruetruefalsefalsetruetruefalsetruetruetrue58truefalse4truetruetruetrue \ No newline at end of file diff --git a/README.md b/README.md index 6b63661..c354b6d 100644 --- a/README.md +++ b/README.md @@ -121,6 +121,8 @@ https://docs.microsoft.com/en-us/windows-hardware/drivers/gettingstarted/writing A good tutorial on how to setup your target computer and start a debug session is available here: +https://docs.microsoft.com/en-us/windows-hardware/drivers/gettingstarted/provision-a-target-computer-wdk-8-1 + https://docs.microsoft.com/en-us/windows-hardware/drivers/debugger/debug-universal-drivers---step-by-step-lab--echo-kernel-mode- For NET debugging, see also: diff --git a/apps/common/vJoyInterfaceCS/vJoyInterfaceWrap/Wrapper.cs b/apps/common/vJoyInterfaceCS/vJoyInterfaceWrap/Wrapper.cs index 0a1013d..bcbe400 100644 --- a/apps/common/vJoyInterfaceCS/vJoyInterfaceWrap/Wrapper.cs +++ b/apps/common/vJoyInterfaceCS/vJoyInterfaceWrap/Wrapper.cs @@ -328,7 +328,7 @@ public struct FFB_DEVICE_PID public FFB_PID_POOL_REPORT PIDPool; [FieldOffset(8)] [MarshalAs(UnmanagedType.ByValArray, SizeConst = MAX_FFB_EFFECTS_BLOCK_INDEX)] - public FFB_PID_EFFECT_STATE_REPORT []EffectState; + public FFB_PID_EFFECT_STATE_REPORT []EffectStates; } diff --git a/driver/sys/hid.c b/driver/sys/hid.c index acf8719..64fddf3 100644 --- a/driver/sys/hid.c +++ b/driver/sys/hid.c @@ -1822,7 +1822,7 @@ void InitializeDeviceContext(PDEVICE_EXTENSION devContext) pid->PIDBlockLoad.RAMPoolAvailable = 0xFFFF; for (int j=0; jEffectState[j].EffectState = 0; + pid->EffectStates[j].EffectState = 0; } } } diff --git a/inc/public.h b/inc/public.h index d1e8afd..d12336a 100644 --- a/inc/public.h +++ b/inc/public.h @@ -286,7 +286,7 @@ typedef struct _FFB_DEVICE_PID { FFB_PID_BLOCK_LOAD_REPORT PIDBlockLoad; FFB_PID_POOL_REPORT PIDPool; - FFB_PID_EFFECT_STATE_REPORT EffectState[MAX_FFB_EFFECTS_BLOCK_INDEX]; + FFB_PID_EFFECT_STATE_REPORT EffectStates[MAX_FFB_EFFECTS_BLOCK_INDEX]; } FFB_DEVICE_PID, * PFFB_DEVICE_PID;