mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-05 22:41:25 +12:00
raw_mouse: fix out of bounds error
This commit is contained in:
parent
1600ca2c03
commit
dae4eb2d0e
1 changed files with 1 additions and 0 deletions
|
@ -62,6 +62,7 @@ std::pair<int, int> raw_mouse::get_mouse_button(const cfg::string& button)
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
static const std::unordered_map<int, std::pair<int, int>> btn_pairs
|
static const std::unordered_map<int, std::pair<int, int>> btn_pairs
|
||||||
{
|
{
|
||||||
|
{ 0, {}},
|
||||||
{ RI_MOUSE_BUTTON_1_UP, { RI_MOUSE_BUTTON_1_DOWN, RI_MOUSE_BUTTON_1_UP }},
|
{ RI_MOUSE_BUTTON_1_UP, { RI_MOUSE_BUTTON_1_DOWN, RI_MOUSE_BUTTON_1_UP }},
|
||||||
{ RI_MOUSE_BUTTON_2_UP, { RI_MOUSE_BUTTON_2_DOWN, RI_MOUSE_BUTTON_2_UP }},
|
{ RI_MOUSE_BUTTON_2_UP, { RI_MOUSE_BUTTON_2_DOWN, RI_MOUSE_BUTTON_2_UP }},
|
||||||
{ RI_MOUSE_BUTTON_3_UP, { RI_MOUSE_BUTTON_3_DOWN, RI_MOUSE_BUTTON_3_UP }},
|
{ RI_MOUSE_BUTTON_3_UP, { RI_MOUSE_BUTTON_3_DOWN, RI_MOUSE_BUTTON_3_UP }},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue