commit 97d83d22b79b2bbc71a77dad5ec87433e5066961
Author: jtothebell <j.to.the.bell@gmail.com>
AuthorDate: Wed Jun 23 18:40:41 2021 -0600
Commit: jtothebell <j.to.the.bell@gmail.com>
CommitDate: Wed Jun 23 18:40:41 2021 -0600
Make select/- change stretch
---
platform/3ds/source/3dsHost.cpp | 6 +-----
platform/switch/source/SwitchHost.cpp | 2 +-
platform/vita/source/VitaHost.cpp | 3 ++-
platform/wiiu/source/WiiUHost.cpp | 3 ++-
source/FakoBios.h | 2 +-
5 files changed, 7 insertions(+), 9 deletions(-)
diff --git a/platform/3ds/source/3dsHost.cpp b/platform/3ds/source/3dsHost.cpp
index 69babea..1e12f44 100644
--- a/platform/3ds/source/3dsHost.cpp
+++ b/platform/3ds/source/3dsHost.cpp
@@ -121,10 +121,6 @@ uint8_t ConvertInputToP8(u32 input){
result |= P8_KEY_PAUSE;
}
- if (input & KEY_SELECT){
- result |= P8_KEY_7;
- }
-
return result;
}
@@ -399,7 +395,7 @@ void Host::setTargetFps(int targetFps){
}
void Host::changeStretch(){
- if (currKDown32 & KEY_R) {
+ if (currKDown32 & KEY_SELECT) {
if (stretch == PixelPerfect) {
stretch = StretchToFit;
mouseOffsetX = (__3ds_BottomScreenWidth - __3ds_BottomScreenHeight) / 2;
diff --git a/platform/switch/source/SwitchHost.cpp b/platform/switch/source/SwitchHost.cpp
index 3675434..e9d4b95 100644
--- a/platform/switch/source/SwitchHost.cpp
+++ b/platform/switch/source/SwitchHost.cpp
@@ -131,7 +131,7 @@ InputState_t Host::scanInput(){
quit = 1;
}
- stretchKeyPressed = rDown;
+ stretchKeyPressed = currKDown_64 & HidNpadButton_Minus;
HidTouchScreenState state={0};
if (hidGetTouchScreenStates(&state, 1)) {
diff --git a/platform/vita/source/VitaHost.cpp b/platform/vita/source/VitaHost.cpp
index 2da8825..38cf330 100644
--- a/platform/vita/source/VitaHost.cpp
+++ b/platform/vita/source/VitaHost.cpp
@@ -111,7 +111,8 @@ InputState_t Host::scanInput(){
case SDLK_VITA_CROSS: currKDown |= P8_KEY_X; break;
case SDLK_VITA_CIRCLE: currKDown |= P8_KEY_O; break;
case SDLK_VITA_LTRIGGER: lDown = true; break;
- case SDLK_VITA_RTRIGGER: rDown = true; stretchKeyPressed = true; break;
+ case SDLK_VITA_RTRIGGER: rDown = true; break;
+ case SDLK_VITA_SELECT: stretchKeyPressed = true; break;
}
break;
diff --git a/platform/wiiu/source/WiiUHost.cpp b/platform/wiiu/source/WiiUHost.cpp
index d45d1c0..ab755ee 100644
--- a/platform/wiiu/source/WiiUHost.cpp
+++ b/platform/wiiu/source/WiiUHost.cpp
@@ -322,7 +322,8 @@ InputState_t Host::scanInput(){
case JOY_B: currKDown |= P8_KEY_O; break;
case JOY_L: lDown = true; break;
- case JOY_R: rDown = true; stretchKeyPressed = true; break;
+ case JOY_R: rDown = true; break;
+ case JOY_MINUS: stretchKeyPressed = true; break;
}
break;
diff --git a/source/FakoBios.h b/source/FakoBios.h
index 0d5dc5c..039eaf3 100644
--- a/source/FakoBios.h
+++ b/source/FakoBios.h
@@ -29,7 +29,7 @@ selectbtn = "a"
pausebtn = "start"
versionstr = ")#" VER_STR R"#("
exitbtn = "l + r"
-sizebtn = "r to cycle screen sizes"
+sizebtn = "select to cycle screen sizes"
--end customizable per platform
function _init()