diff options
| author | 2020-07-20 13:17:06 +0200 | |
|---|---|---|
| committer | 2020-07-20 13:18:02 +0200 | |
| commit | 9c3664c94b73c3f913cdec1193e300da532a1f54 (patch) | |
| tree | b621435853eab34500cc1a3816fe4368ea4a359b | |
| parent | 9e7f81e89dbd850c596b36e111c03e5b3cf1ab13 (diff) | |
samcoupe/mouse: Savestates
| -rw-r--r-- | src/devices/bus/samcoupe/mouse/mouse.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/devices/bus/samcoupe/mouse/mouse.cpp b/src/devices/bus/samcoupe/mouse/mouse.cpp index bc3b28a98fa..90b44887866 100644 --- a/src/devices/bus/samcoupe/mouse/mouse.cpp +++ b/src/devices/bus/samcoupe/mouse/mouse.cpp @@ -65,6 +65,12 @@ void sam_mouse_device::device_start() { // allocate timer m_reset = timer_alloc(); + + // register for savestates + save_item(NAME(m_mouse_index)); + save_pointer(NAME(m_mouse_data), 9); + save_item(NAME(m_mouse_x)); + save_item(NAME(m_mouse_y)); } //------------------------------------------------- |
