summaryrefslogtreecommitdiffstatshomepage
path: root/src/frontend/mame/ui/inputmap.h
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2019-11-21 16:07:04 +1100
committer Vas Crabb <vas@vastheman.com>2019-11-21 16:07:04 +1100
commiteaf07fffa33296500c4a6d35bf64a9098ca35fc0 (patch)
treef4d699a1de44c4a01d23120512f17debd6afd975 /src/frontend/mame/ui/inputmap.h
parent0ec88f2ff75fcc65191c0c89ad47f635ebb8c51a (diff)
UI input menu: treat codes containing a postive and negative of the same thing as invalid (e.g. A S not A)
ioport.cpp: * better than 50% reduction in compile time, and better locality for static data * better encapsulation, const correctness and noexcept usage
Diffstat (limited to 'src/frontend/mame/ui/inputmap.h')
-rw-r--r--src/frontend/mame/ui/inputmap.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/frontend/mame/ui/inputmap.h b/src/frontend/mame/ui/inputmap.h
index 736ddf78566..d2e41780211 100644
--- a/src/frontend/mame/ui/inputmap.h
+++ b/src/frontend/mame/ui/inputmap.h
@@ -50,7 +50,7 @@ protected:
// internal input menu item data
struct input_item_data
{
- void * ref = nullptr; // reference to type description for global inputs or field for game inputs
+ const void * ref = nullptr; // reference to type description for global inputs or field for game inputs
input_seq_type seqtype = SEQ_TYPE_INVALID; // sequence type
input_seq seq; // copy of the live sequence
const input_seq * defseq = nullptr; // pointer to the default sequence