mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-07-11 01:25:07 +02:00
Remove misguided hack to signal that we handled key repeats.
Fixes #21336
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user