summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/inputdev.cpp
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2021-01-24 14:48:06 -0500
committer AJR <ajrhacker@users.noreply.github.com>2021-01-24 14:59:52 -0500
commit171483bbd5339b1e08bf1e505fdd75b203c25179 (patch)
tree382392704c838568c35c4ca29da0c2e321509e94 /src/emu/inputdev.cpp
parent295fb9b4021c19f45c4a11499b39ce02583c758b (diff)
input.cpp, inputdev.cpp: Misc. fixes
- Fix a recent regression with processing XInput DPAD input item tokens - Prevent code_to_token from blowing up in strange cases
Diffstat (limited to 'src/emu/inputdev.cpp')
-rw-r--r--src/emu/inputdev.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/emu/inputdev.cpp b/src/emu/inputdev.cpp
index 3ca876ff0d8..783bccf3a31 100644
--- a/src/emu/inputdev.cpp
+++ b/src/emu/inputdev.cpp
@@ -684,8 +684,7 @@ input_device_item::input_device_item(input_device &device, const char *name, voi
else
{
// otherwise, create a tokenized name
- m_token.assign(name);
- strmakeupper(m_token);
+ m_token.assign(strmakeupper(name));
strdelchr(m_token, ' ');
strdelchr(m_token, '_');
}