Remove misguided hack to signal that we handled key repeats.

Fixes #21336
This commit is contained in:
Henrik Rydgård
2026-03-05 01:50:41 +01:00
parent c3dbb7f608
commit 3352ba44bb
3 changed files with 2 additions and 7 deletions
+1 -1
View File
@@ -577,7 +577,7 @@ private:
Style style_;
std::string text_;
ImageID imageID_;
std::function<ImageID()> imageFunc_;
std::function<ImageID()> imageFunc_{};
int paddingW_ = 16;
int paddingH_ = 8;
float scale_ = 1.0f;
-5
View File
@@ -531,11 +531,6 @@ bool ControlMapper::UpdatePSPState(const InputMapping &changedMapping, double no
}
bool ControlMapper::Key(const KeyInput &key, bool *pauseTrigger) {
if (key.flags & KeyInputFlags::IS_REPEAT) {
// Claim that we handled this. Prevents volume key repeats from popping up the volume control on Android.
return true;
}
double now = time_now_d();
InputMapping mapping(key.deviceId, key.keyCode);
@@ -1284,7 +1284,7 @@ public class PpssppActivity extends AppCompatActivity implements SensorEventList
@RequiresApi(Build.VERSION_CODES.N)
void sendMouseDelta(float dx, float dy) {
// Ignore zero deltas.
if (Math.abs(dx) > 0.001 || Math.abs(dx) > 0.001) {
if (Math.abs(dx) > 0.001 || Math.abs(dy) > 0.001) {
NativeApp.mouseDelta(dx, dy);
}
}