mirror of
https://github.com/holub/mame
synced 2025-05-22 21:58:57 +03:00
PORT_ADJUSTER now accepts PORT_MINMAX as well. [Couriersud]
This commit is contained in:
parent
06a51716dc
commit
d1b347c3f6
@ -1606,6 +1606,7 @@ ATTR_COLD void INPUT_PORTS_NAME(_name)(device_t &owner, ioport_list &portlist, a
|
||||
// analog adjuster definition
|
||||
#define PORT_ADJUSTER(_default, _name) \
|
||||
configurer.field_alloc(IPT_ADJUSTER, (_default), 0xff, (_name)); \
|
||||
configurer.field_set_min_max(0, 100); \
|
||||
|
||||
// config definition
|
||||
#define PORT_CONFNAME(_mask, _default, _name) \
|
||||
|
@ -1670,7 +1670,7 @@ static slider_state *slider_init(running_machine &machine)
|
||||
if (field->type() == IPT_ADJUSTER)
|
||||
{
|
||||
void *param = (void *)field;
|
||||
*tailptr = slider_alloc(machine, field->name(), 0, field->defvalue(), 100, 1, slider_adjuster, param);
|
||||
*tailptr = slider_alloc(machine, field->name(), field->minval(), field->defvalue(), field->maxval(), 1, slider_adjuster, param);
|
||||
tailptr = &(*tailptr)->next;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user