summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/ioport.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/ioport.h')
-rw-r--r--src/emu/ioport.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/emu/ioport.h b/src/emu/ioport.h
index 82834584815..aa0a04bfca8 100644
--- a/src/emu/ioport.h
+++ b/src/emu/ioport.h
@@ -1266,7 +1266,10 @@ public:
void read(ioport_value &value);
float crosshair_read();
void frame_update(running_machine &machine);
-
+
+ // setters
+ void set_value(s32 value);
+
private:
// helpers
s32 apply_min_max(s32 value) const;
@@ -1294,6 +1297,7 @@ private:
s32 m_accum; // accumulated value (including relative adjustments)
s32 m_previous; // previous adjusted value
s32 m_previousanalog; // previous analog value
+ s32 m_prog_analog_value; // programmatically set analog value
// parameters for modifying live values
s32 m_minimum; // minimum adjusted value
@@ -1315,6 +1319,7 @@ private:
bool m_single_scale; // scale joystick differently if default is between min/max
bool m_interpolate; // should we do linear interpolation for mid-frame reads?
bool m_lastdigital; // was the last modification caused by a digital form?
+ bool m_was_written; // was the last modification caused programmatically?
};