mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-09-07 13:13:24 +02:00
OpenXR - Use mouse control only
This commit is contained in:
@@ -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 ¶ms) {
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user