summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/modules/input/input_dinput.cpp
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2022-06-16 03:32:46 +1000
committer Vas Crabb <vas@vastheman.com>2022-06-16 03:32:46 +1000
commit1964365f34499ae5785c7b8f13836caa05156dfa (patch)
tree15ce654e3170c3509db1fddbb9b70a194f77cb46 /src/osd/modules/input/input_dinput.cpp
parentd345b7ec2ccf3c9a958bddd3906a202e42a88809 (diff)
Optimisation, and baby steps towards untangling stuff:
Optimised the scheduler's handling of unscheduled timers - gives a 50% performance improvement in some timer-heavy drivers. Added better endianness swizzling helpers. Got rid of some of the OSD input modules' dependence on concrete input classes from emu.
Diffstat (limited to 'src/osd/modules/input/input_dinput.cpp')
-rw-r--r--src/osd/modules/input/input_dinput.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/osd/modules/input/input_dinput.cpp b/src/osd/modules/input/input_dinput.cpp
index fa273e5fdb1..77467f80d59 100644
--- a/src/osd/modules/input/input_dinput.cpp
+++ b/src/osd/modules/input/input_dinput.cpp
@@ -389,9 +389,9 @@ void dinput_mouse_device::poll()
dinput_device::poll_dinput(&mouse);
// scale the axis data
- mouse.lX *= INPUT_RELATIVE_PER_PIXEL;
- mouse.lY *= INPUT_RELATIVE_PER_PIXEL;
- mouse.lZ *= INPUT_RELATIVE_PER_PIXEL;
+ mouse.lX *= osd::INPUT_RELATIVE_PER_PIXEL;
+ mouse.lY *= osd::INPUT_RELATIVE_PER_PIXEL;
+ mouse.lZ *= osd::INPUT_RELATIVE_PER_PIXEL;
}
void dinput_mouse_device::reset()