Example #1
0
        /*-------------------------------------------------
        *   find_mouse_field - retrieves the input field
        *   the mouse is currently pointing at
        *  -------------------------------------------------*/
        ioport_field find_mouse_field()
        {
            // map the point and determine what was hit
            if (m_current_mouse_target != null)
            {
                ioport_port  port = null;
                ioport_value mask;
                float        x, y;
                if (m_current_mouse_target.map_point_input(m_current_mouse_x, m_current_mouse_y, out port, out mask, out x, out y))
                {
                    if (port != null)
                    {
                        return(port.field(mask));
                    }
                }
            }

            return(null);
        }
Example #2
0
 public handler_entry_write_ioport(address_space space, ioport_port port) : base(space, 0)
 {
     m_port = port;
 }
Example #3
0
 public handler_entry_write_ioport(int Width, int AddrShift, int Endian, address_space space, ioport_port port) : base(Width, AddrShift, Endian, space, 0)
 {
     m_port = port;
 }