上传文件至 'source-code/source/plugins/TLAC/Input/KeyConfig'
Allow to load key config for generic usb game controller.
This commit is contained in:
@@ -5,11 +5,13 @@
|
||||
#include "KeyStringHash.h"
|
||||
#include "../Bindings/Binding.h"
|
||||
#include "../DirectInput/Ds4/Ds4Button.h"
|
||||
#include "../DirectInput/GenericUsb/GuButton.h"
|
||||
|
||||
namespace TLAC::Input::KeyConfig
|
||||
{
|
||||
typedef std::unordered_map<KeyString, uint8_t, KeyStringHash> KeycodeMap;
|
||||
typedef std::unordered_map<KeyString, Ds4Button, KeyStringHash> Ds4ButtonMap;
|
||||
typedef std::unordered_map<KeyString, GuButton, KeyStringHash> GuButtonMap;
|
||||
|
||||
class Config
|
||||
{
|
||||
@@ -17,6 +19,7 @@ namespace TLAC::Input::KeyConfig
|
||||
static KeycodeMap Keymap;
|
||||
static Ds4ButtonMap Ds4Map;
|
||||
static KeycodeMap XinputMap;
|
||||
static GuButtonMap GuMap;
|
||||
|
||||
static void BindConfigKeys(std::unordered_map<std::string, std::string> &configMap, const char *configKeyName, Binding &bindObj, std::vector<std::string> defaultKeys);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user