mirror of
https://github.com/holub/mame
synced 2025-10-04 16:34:53 +03:00
bus/interpro: minor tidy (nw)
This commit is contained in:
parent
6335ac0013
commit
884830c5c1
@ -98,7 +98,7 @@ INPUT_CHANGED_MEMBER(interpro_mouse_device::mouse_button)
|
||||
|
||||
LOG("mouse_button 0x%08x\n", data);
|
||||
|
||||
state_w(machine().dummy_space(), 0, data & MOUSE_BUTTONS, MOUSE_BUTTONS);
|
||||
state_w(data & MOUSE_BUTTONS, MOUSE_BUTTONS);
|
||||
}
|
||||
|
||||
INPUT_CHANGED_MEMBER(interpro_mouse_device::mouse_x)
|
||||
@ -112,7 +112,7 @@ INPUT_CHANGED_MEMBER(interpro_mouse_device::mouse_x)
|
||||
|
||||
LOG("mouse_x delta %d\n", delta);
|
||||
|
||||
state_w(machine().dummy_space(), 0, (delta << 8) & MOUSE_XPOS, MOUSE_XPOS);
|
||||
state_w((delta << 8) & MOUSE_XPOS, MOUSE_XPOS);
|
||||
}
|
||||
|
||||
INPUT_CHANGED_MEMBER(interpro_mouse_device::mouse_y)
|
||||
@ -126,5 +126,5 @@ INPUT_CHANGED_MEMBER(interpro_mouse_device::mouse_y)
|
||||
|
||||
LOG("mouse_y delta %d\n", delta);
|
||||
|
||||
state_w(machine().dummy_space(), 0, (delta << 0) & MOUSE_YPOS, MOUSE_YPOS);
|
||||
state_w((delta << 0) & MOUSE_YPOS, MOUSE_YPOS);
|
||||
}
|
||||
|
@ -43,12 +43,11 @@ class device_interpro_mouse_port_interface : public device_slot_card_interface
|
||||
{
|
||||
friend class interpro_mouse_port_device;
|
||||
|
||||
public:
|
||||
DECLARE_WRITE32_MEMBER(state_w) { m_port->m_state_func(space, offset, data, mem_mask); }
|
||||
|
||||
protected:
|
||||
device_interpro_mouse_port_interface(machine_config const &mconfig, device_t &device);
|
||||
|
||||
void state_w(u32 data, u32 mem_mask) { m_port->m_state_func(offs_t(0), data, mem_mask); }
|
||||
|
||||
private:
|
||||
interpro_mouse_port_device *m_port;
|
||||
};
|
||||
|
@ -107,6 +107,12 @@
|
||||
|
||||
#include "gt.h"
|
||||
|
||||
#include "bus/rs232/rs232.h"
|
||||
#include "bus/rs232/loopback.h"
|
||||
|
||||
#include "bus/interpro/keyboard/keyboard.h"
|
||||
#include "bus/interpro/mouse/mouse.h"
|
||||
|
||||
#define LOG_GENERAL (1U << 0)
|
||||
#define LOG_LINE (1U << 1)
|
||||
#define LOG_BLIT (1U << 2)
|
||||
|
@ -12,12 +12,6 @@
|
||||
#include "machine/ram.h"
|
||||
#include "machine/z80scc.h"
|
||||
|
||||
#include "bus/rs232/rs232.h"
|
||||
#include "bus/rs232/loopback.h"
|
||||
|
||||
#include "bus/interpro/keyboard/keyboard.h"
|
||||
#include "bus/interpro/mouse/mouse.h"
|
||||
|
||||
class gt_device_base : public device_t
|
||||
{
|
||||
protected:
|
||||
|
Loading…
Reference in New Issue
Block a user