Skip to content

Commit

Permalink
Add VS settings for C++ coding style. Rename a field.
Browse files Browse the repository at this point in the history
  • Loading branch information
njz3 committed Mar 13, 2020
1 parent 1839287 commit 0b1b619
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions CodingStyleCPP.vssettings
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<UserSettings><ApplicationIdentity version="16.0"/><ToolsOptions><ToolsOptionsCategory name="TextEditor" RegisteredName="TextEditor"><ToolsOptionsSubCategory name="C/C++" RegisteredName="C/C++" PackageName="Text Management Package"><PropertyValue name="TabSize">4</PropertyValue><PropertyValue name="ShowChanges">true</PropertyValue><PropertyValue name="AutoListMembers">true</PropertyValue><PropertyValue name="ShowPreview">true</PropertyValue><PropertyValue name="ShowMarks">true</PropertyValue><PropertyValue name="IndentStyle">2</PropertyValue><PropertyValue name="ShowCaretPosition">true</PropertyValue><PropertyValue name="HideAdvancedMembers">true</PropertyValue><PropertyValue name="ShowNavigationBar">true</PropertyValue><PropertyValue name="UseMapMode">false</PropertyValue><PropertyValue name="VirtualSpace">false</PropertyValue><PropertyValue name="ShowAnnotations">true</PropertyValue><PropertyValue name="ShowVerticalScrollBar">true</PropertyValue><PropertyValue name="InsertTabs">false</PropertyValue><PropertyValue name="WordWrapGlyphs">true</PropertyValue><PropertyValue name="EnableLeftClickForURLs">true</PropertyValue><PropertyValue name="ShowErrors">true</PropertyValue><PropertyValue name="OverviewWidth">58</PropertyValue><PropertyValue name="ShowLineNumbers">true</PropertyValue><PropertyValue name="WordWrap">false</PropertyValue><PropertyValue name="IndentSize">4</PropertyValue><PropertyValue name="BraceCompletion">true</PropertyValue><PropertyValue name="ShowHorizontalScrollBar">true</PropertyValue><PropertyValue name="CutCopyBlankLines">true</PropertyValue><PropertyValue name="AutoListParams">true</PropertyValue></ToolsOptionsSubCategory></ToolsOptionsCategory></ToolsOptions></UserSettings>
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion apps/common/vJoyInterfaceCS/vJoyInterfaceWrap/Wrapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}


Expand Down
2 changes: 1 addition & 1 deletion driver/sys/hid.c
Original file line number Diff line number Diff line change
Expand Up @@ -1822,7 +1822,7 @@ void InitializeDeviceContext(PDEVICE_EXTENSION devContext)
pid->PIDBlockLoad.RAMPoolAvailable = 0xFFFF;

for (int j=0; j<MAX_FFB_EFFECTS_BLOCK_INDEX; j++) {
pid->EffectState[j].EffectState = 0;
pid->EffectStates[j].EffectState = 0;
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion inc/public.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;


Expand Down

0 comments on commit 0b1b619

Please sign in to comment.