mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-23 05:19:56 +00:00
Make virtual gamepad visible from the start if button fading is on. They'll fade out after a while.
This commit is contained in:
parent
63aa4291eb
commit
a53d31a8d7
@ -34,6 +34,10 @@ static u32 GetButtonColor() {
|
||||
return g_Config.iTouchButtonStyle == 1 ? 0xFFFFFF : 0xc0b080;
|
||||
}
|
||||
|
||||
GamepadView::GamepadView(UI::LayoutParams *layoutParams) : UI::View(layoutParams), secondsWithoutTouch_(0) {
|
||||
lastFrameTime_ = time_now_d();
|
||||
}
|
||||
|
||||
void GamepadView::Touch(const TouchInput &input) {
|
||||
secondsWithoutTouch_ = 0.0f;
|
||||
}
|
||||
|
@ -25,8 +25,7 @@
|
||||
|
||||
class GamepadView : public UI::View {
|
||||
public:
|
||||
GamepadView(UI::LayoutParams *layoutParams) : UI::View(layoutParams), lastFrameTime_(0.0f), secondsWithoutTouch_(0) {
|
||||
}
|
||||
GamepadView(UI::LayoutParams *layoutParams);
|
||||
|
||||
void Touch(const TouchInput &input) override;
|
||||
bool Key(const KeyInput &input) override {
|
||||
|
Loading…
Reference in New Issue
Block a user