mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2024-11-26 19:14:20 +01:00
Use new populateFieldMapping method for custom actions
This commit is contained in:
parent
c5c56cf78c
commit
e556213a44
@ -72,6 +72,11 @@ namespace DS4Windows
|
||||
new DS4StateFieldMapping(), new DS4StateFieldMapping(), new DS4StateFieldMapping(),
|
||||
new DS4StateFieldMapping()
|
||||
};
|
||||
public static DS4StateFieldMapping[] previousFieldMappings = new DS4StateFieldMapping[4]
|
||||
{
|
||||
new DS4StateFieldMapping(), new DS4StateFieldMapping(), new DS4StateFieldMapping(),
|
||||
new DS4StateFieldMapping()
|
||||
};
|
||||
|
||||
// TODO When we disconnect, process a null/dead state to release any keys or buttons.
|
||||
public static DateTime oldnow = DateTime.UtcNow;
|
||||
@ -2008,7 +2013,9 @@ namespace DS4Windows
|
||||
// button is assigned
|
||||
if (previousFieldMapping == null)
|
||||
{
|
||||
previousFieldMapping = new DS4StateFieldMapping(tempPrevState, eState, tp, true);
|
||||
previousFieldMapping = previousFieldMappings[device];
|
||||
previousFieldMapping.populateFieldMapping(tempPrevState, eState, tp, true);
|
||||
//previousFieldMapping = new DS4StateFieldMapping(tempPrevState, eState, tp, true);
|
||||
}
|
||||
|
||||
bool activeCur = getBoolMapping2(device, action.trigger[0], cState, eState, tp, fieldMapping);
|
||||
|
Loading…
Reference in New Issue
Block a user