mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-09-08 13:43:27 +02:00
OpenXR - Hacky mapping to make the games playable
This commit is contained in:
@@ -691,7 +691,6 @@ void GameSettingsScreen::CreateViews() {
|
||||
MicChoice->OnChoice.Handle(this, &GameSettingsScreen::OnMicDeviceChange);
|
||||
}
|
||||
|
||||
#ifndef OPENXR
|
||||
// Control
|
||||
LinearLayout *controlsSettings = AddTab("GameSettingsControls", ms->T("Controls"));
|
||||
|
||||
@@ -717,6 +716,7 @@ void GameSettingsScreen::CreateViews() {
|
||||
});
|
||||
}
|
||||
|
||||
#ifndef OPENXR
|
||||
// TVs don't have touch control, at least not yet.
|
||||
if (System_GetPropertyInt(SYSPROP_DEVICE_TYPE) != DEVICE_TYPE_TV) {
|
||||
controlsSettings->Add(new ItemHeader(co->T("OnScreen", "On-Screen Touch Controls")));
|
||||
|
||||
@@ -113,18 +113,29 @@ struct ButtonMapping
|
||||
};
|
||||
|
||||
std::vector<ButtonMapping> leftControllerMapping = {
|
||||
ButtonMapping(52, ovrButton_X),
|
||||
ButtonMapping(53, ovrButton_Y),
|
||||
ButtonMapping(54, ovrButton_LThumb),
|
||||
ButtonMapping(55, ovrButton_GripTrigger),
|
||||
ButtonMapping(19, ovrButton_Up),
|
||||
ButtonMapping(20, ovrButton_Down),
|
||||
ButtonMapping(21, ovrButton_Left),
|
||||
ButtonMapping(22, ovrButton_Right),
|
||||
ButtonMapping(23, ovrButton_Joystick),
|
||||
ButtonMapping(66, ovrButton_Trigger),
|
||||
ButtonMapping(4, ovrButton_Enter),
|
||||
};
|
||||
|
||||
std::vector<ButtonMapping> rightControllerMapping = {
|
||||
ButtonMapping(29, ovrButton_A),
|
||||
ButtonMapping(30, ovrButton_B),
|
||||
ButtonMapping(31, ovrButton_RThumb),
|
||||
ButtonMapping(32, ovrButton_GripTrigger),
|
||||
ButtonMapping(19, ovrButton_Up),
|
||||
ButtonMapping(20, ovrButton_Down),
|
||||
ButtonMapping(21, ovrButton_Left),
|
||||
ButtonMapping(22, ovrButton_Right),
|
||||
ButtonMapping(23, ovrButton_Joystick),
|
||||
ButtonMapping(66, ovrButton_Trigger),
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user