mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-04 16:32:39 +00:00
added home, end, pgup and pgdown
This commit is contained in:
parent
52ad7e0a96
commit
050ba2e3b0
@ -168,6 +168,10 @@ const std::map<std::string, u32> string_to_keyboard_key_map = {
|
|||||||
{"rmeta", SDLK_RGUI},
|
{"rmeta", SDLK_RGUI},
|
||||||
{"lwin", SDLK_LGUI},
|
{"lwin", SDLK_LGUI},
|
||||||
{"rwin", SDLK_RGUI},
|
{"rwin", SDLK_RGUI},
|
||||||
|
{"home", SDLK_HOME},
|
||||||
|
{"end", SDLK_END},
|
||||||
|
{"pgup", SDLK_PAGEUP},
|
||||||
|
{"pgdown", SDLK_PAGEDOWN},
|
||||||
{"leftbutton", SDL_BUTTON_LEFT},
|
{"leftbutton", SDL_BUTTON_LEFT},
|
||||||
{"rightbutton", SDL_BUTTON_RIGHT},
|
{"rightbutton", SDL_BUTTON_RIGHT},
|
||||||
{"middlebutton", SDL_BUTTON_MIDDLE},
|
{"middlebutton", SDL_BUTTON_MIDDLE},
|
||||||
@ -204,7 +208,6 @@ std::map<KeyBinding, u32> button_map = {};
|
|||||||
std::map<KeyBinding, AxisMapping> axis_map = {};
|
std::map<KeyBinding, AxisMapping> axis_map = {};
|
||||||
std::map<SDL_Keycode, std::pair<SDL_Keymod, bool>> key_to_modkey_toggle_map = {};
|
std::map<SDL_Keycode, std::pair<SDL_Keymod, bool>> key_to_modkey_toggle_map = {};
|
||||||
|
|
||||||
|
|
||||||
// i wrapped it in a function so I can collapse it
|
// i wrapped it in a function so I can collapse it
|
||||||
std::string getDefaultKeyboardConfig() {
|
std::string getDefaultKeyboardConfig() {
|
||||||
std::string default_config =
|
std::string default_config =
|
||||||
@ -273,8 +276,6 @@ axis_left_y_plus = s;
|
|||||||
return default_config;
|
return default_config;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Flags and values for varying purposes
|
// Flags and values for varying purposes
|
||||||
int mouse_joystick_binding = 0;
|
int mouse_joystick_binding = 0;
|
||||||
float mouse_deadzone_offset = 0.5, mouse_speed = 1, mouse_speed_offset = 0.125;
|
float mouse_deadzone_offset = 0.5, mouse_speed = 1, mouse_speed_offset = 0.125;
|
||||||
@ -342,7 +343,7 @@ void parseInputConfig(const std::string game_id = "") {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// if we just called the function to generate the directory and the default .ini
|
// if we just called the function to generate the directory and the default .ini
|
||||||
if(game_id.empty()) {
|
if (game_id.empty()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -473,14 +474,14 @@ void parseInputConfig(const std::string game_id = "") {
|
|||||||
file.close();
|
file.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
} // namespace KBMConfig
|
||||||
|
|
||||||
namespace Frontend {
|
namespace Frontend {
|
||||||
using Libraries::Pad::OrbisPadButtonDataOffset;
|
using Libraries::Pad::OrbisPadButtonDataOffset;
|
||||||
|
|
||||||
using namespace KBMConfig;
|
using namespace KBMConfig;
|
||||||
using KBMConfig::KeyBinding;
|
|
||||||
using KBMConfig::AxisMapping;
|
using KBMConfig::AxisMapping;
|
||||||
|
using KBMConfig::KeyBinding;
|
||||||
|
|
||||||
// modifiers are bitwise or-d together, so we need to check if ours is in that
|
// modifiers are bitwise or-d together, so we need to check if ours is in that
|
||||||
template <typename T>
|
template <typename T>
|
||||||
|
Loading…
Reference in New Issue
Block a user