mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-23 13:30:02 +00:00
Scale buttons by 1.5 instead of 2.0 on touch.
Not sure if this should really be a setting. If you don't like the scaling at all, you can still choose the glow style. We should probably somehow make that one more obvious though.
This commit is contained in:
parent
2d0252feb8
commit
a9a45481cc
@ -34,6 +34,8 @@
|
||||
#include "Core/ControlMapper.h"
|
||||
#include "UI/GamepadEmu.h"
|
||||
|
||||
const float TOUCH_SCALE_FACTOR = 1.5f;
|
||||
|
||||
static uint32_t usedPointerMask = 0;
|
||||
static uint32_t analogPointerMask = 0;
|
||||
|
||||
@ -134,7 +136,7 @@ void MultiTouchButton::Draw(UIContext &dc) {
|
||||
if (g_Config.iTouchButtonStyle == 2) {
|
||||
opacity *= 1.35f;
|
||||
} else {
|
||||
scale *= 2.0f;
|
||||
scale *= TOUCH_SCALE_FACTOR;
|
||||
opacity *= 1.15f;
|
||||
}
|
||||
}
|
||||
@ -384,8 +386,8 @@ void PSPDpad::Draw(UIContext &dc) {
|
||||
float y = bounds_.centerY() + yoff[i] * r;
|
||||
float x2 = bounds_.centerX() + xoff[i] * (r + 10.f * scale_);
|
||||
float y2 = bounds_.centerY() + yoff[i] * (r + 10.f * scale_);
|
||||
float angle = i * M_PI / 2;
|
||||
float imgScale = isDown ? scale_ * 2 : scale_;
|
||||
float angle = i * (M_PI / 2.0f);
|
||||
float imgScale = isDown ? scale_ * TOUCH_SCALE_FACTOR : scale_;
|
||||
float imgOpacity = opacity;
|
||||
|
||||
if (isDown && g_Config.iTouchButtonStyle == 2) {
|
||||
|
Loading…
Reference in New Issue
Block a user