OpenXR - Use mouse control only

This commit is contained in:
Lubos 2022-11-17 12:19:17 +01:00
parent ddad6b3760
commit 011592754f
6 changed files with 87 additions and 36 deletions

View file

@ -27,6 +27,7 @@
#include "Common/UI/Context.h"
#include "Common/UI/View.h"
#include "Common/UI/ViewGroup.h"
#include "Common/VR/PPSSPPVR.h"
#include "Common/Log.h"
#include "Common/Data/Color/RGBAUtil.h"
@ -279,6 +280,7 @@ void ControlMappingScreen::update() {
}
UIDialogScreenWithBackground::update();
SetVRAppMode(VRAppMode::VR_MENU_MODE);
}
UI::EventReturn ControlMappingScreen::OnClearMapping(UI::EventParams &params) {
@ -328,6 +330,7 @@ void KeyMappingNewKeyDialog::CreatePopupContents(UI::ViewGroup *parent) {
std::string pspButtonName = KeyMap::GetPspButtonName(this->pspBtn_);
parent->Add(new TextView(std::string(km->T("Map a new key for")) + " " + mc->T(pspButtonName), new LinearLayoutParams(Margins(10,0))));
SetVRAppMode(VRAppMode::VR_CONTROLL_MAPPING_MODE);
}
bool KeyMappingNewKeyDialog::key(const KeyInput &key) {
@ -360,6 +363,7 @@ void KeyMappingNewMouseKeyDialog::CreatePopupContents(UI::ViewGroup *parent) {
auto km = GetI18NCategory("KeyMapping");
parent->Add(new TextView(std::string(km->T("You can press ESC to cancel.")), new LinearLayoutParams(Margins(10, 0))));
SetVRAppMode(VRAppMode::VR_CONTROLL_MAPPING_MODE);
}
bool KeyMappingNewMouseKeyDialog::key(const KeyInput &key) {