Merge pull request #306 from SHADE-DP/SP3-10-input-management

Changed default pathing for binding file serialisation
This commit is contained in:
XiaoQiDigipen 2023-01-09 17:44:14 +08:00 committed by GitHub
commit 8e58d47115
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 53 deletions

View File

@ -1,52 +1 @@
4
Horizontal
0
0
5
0.2
5
0
2
39
68
2
37
65
2
3
16
1
2
Mouse Wheel
3
0
1
0.2
1
0
0
0
0
0
Mouse X
1
0
1
0.2
1
0
0
0
0
0
Mouse Y
2
0
1
0.2
1
0
0
0
0
0 0

View File

@ -14,6 +14,7 @@
#include <map> #include <map>
#include <set> #include <set>
#include "../../SHADE_Managed/src/SHpch.h" #include "../../SHADE_Managed/src/SHpch.h"
#include "../../SHADE_Engine/src/Assets/SHAssetMacros.h"
#include "SH_API.h" #include "SH_API.h"
#pragma comment(lib, "xinput.lib") #pragma comment(lib, "xinput.lib")
@ -686,11 +687,11 @@ namespace SHADE
/*------------------------------------------------------------------------*/ /*------------------------------------------------------------------------*/
//Save bindings registered into a file //Save bindings registered into a file
static void SaveBindings(std::string const& targetFile = "../../Assets/Bindings.SHConfig") noexcept; static void SaveBindings(std::string const& targetFile = std::string(ASSET_ROOT) + "/Bindings.SHConfig") noexcept;
//Load and register bindings from a file //Load and register bindings from a file
//If specified file exists, the current list of bindings will be overwritten, so save them somewhere else before loading //If specified file exists, the current list of bindings will be overwritten, so save them somewhere else before loading
static void LoadBindings(std::string const& sourceFile = "../../Assets/Bindings.SHConfig") noexcept; static void LoadBindings(std::string const& sourceFile = std::string(ASSET_ROOT) + "/Bindings.SHConfig") noexcept;
/*------------------------------------------------------------------------*/ /*------------------------------------------------------------------------*/
/* Binding Functions */ /* Binding Functions */