mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
OpenXR - Static added to global variables
This commit is contained in:
parent
b2509ad4dd
commit
ab9a48d750
1 changed files with 4 additions and 4 deletions
|
@ -112,7 +112,7 @@ struct ButtonMapping {
|
|||
}
|
||||
};
|
||||
|
||||
std::vector<ButtonMapping> leftControllerMapping = {
|
||||
static std::vector<ButtonMapping> leftControllerMapping = {
|
||||
ButtonMapping(NKCODE_BUTTON_X, ovrButton_X),
|
||||
ButtonMapping(NKCODE_BUTTON_Y, ovrButton_Y),
|
||||
ButtonMapping(NKCODE_ALT_LEFT, ovrButton_GripTrigger),
|
||||
|
@ -125,7 +125,7 @@ std::vector<ButtonMapping> leftControllerMapping = {
|
|||
ButtonMapping(NKCODE_BACK, ovrButton_Enter),
|
||||
};
|
||||
|
||||
std::vector<ButtonMapping> rightControllerMapping = {
|
||||
static std::vector<ButtonMapping> rightControllerMapping = {
|
||||
ButtonMapping(NKCODE_BUTTON_A, ovrButton_A),
|
||||
ButtonMapping(NKCODE_BUTTON_B, ovrButton_B),
|
||||
ButtonMapping(NKCODE_ALT_RIGHT, ovrButton_GripTrigger),
|
||||
|
@ -137,8 +137,8 @@ std::vector<ButtonMapping> rightControllerMapping = {
|
|||
ButtonMapping(NKCODE_ENTER, ovrButton_Trigger),
|
||||
};
|
||||
|
||||
int controllerIds[] = {DEVICE_ID_XR_CONTROLLER_LEFT, DEVICE_ID_XR_CONTROLLER_RIGHT};
|
||||
std::vector<ButtonMapping> controllerMapping[2] = {
|
||||
static const int controllerIds[] = {DEVICE_ID_XR_CONTROLLER_LEFT, DEVICE_ID_XR_CONTROLLER_RIGHT};
|
||||
static std::vector<ButtonMapping> controllerMapping[2] = {
|
||||
leftControllerMapping,
|
||||
rightControllerMapping
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue