OpenXR - Use mouse control only
This commit is contained in:
parent
ddad6b3760
commit
011592754f
6 changed files with 87 additions and 36 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue