summaryrefslogtreecommitdiffstatshomepage
path: root/src/frontend/mame/ui/info.h
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2023-02-24 19:31:12 +1100
committer Vas Crabb <vas@vastheman.com>2023-02-24 19:31:12 +1100
commit65aeb63a2a1f4f65a6fa0dedabba1b852a189f96 (patch)
tree42a56bcf4d22b624dbb117946e376981e691a5f0 /src/frontend/mame/ui/info.h
parent3b5dbeea3bad50ad04c966de4afffb864a9856d0 (diff)
Update accumulating relative inputs exactly once per frame.
This fixes "amplification" effects that would happen if the frame rate rose above 100 Hz (whether by unthrottling or otherwise). Synchronise with wall clock any time inputs are read. Not doing this has weird effects on relative inputs with frame skipping and contributes to unresponsiveness of menus. Reduce visual latency for mouse movement on menus when paused or skipping frames. The rest of the code changes to menus won't provide benefits until draw can happen after event handling.
Diffstat (limited to 'src/frontend/mame/ui/info.h')
-rw-r--r--src/frontend/mame/ui/info.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/frontend/mame/ui/info.h b/src/frontend/mame/ui/info.h
index d36c476c7b5..4d5e5e434b7 100644
--- a/src/frontend/mame/ui/info.h
+++ b/src/frontend/mame/ui/info.h
@@ -101,7 +101,7 @@ protected:
private:
virtual void populate() override;
- virtual void handle(event const *ev) override;
+ virtual bool handle(event const *ev) override;
};
@@ -116,7 +116,7 @@ protected:
private:
virtual void populate() override;
- virtual void handle(event const *ev) override;
+ virtual bool handle(event const *ev) override;
};
@@ -131,7 +131,7 @@ protected:
private:
virtual void populate() override;
- virtual void handle(event const *ev) override;
+ virtual bool handle(event const *ev) override;
void image_info(device_image_interface *image);
};