fork of PCE focusing on macplus, supporting DaynaPort SCSI network emulation
at master 54 lines 1.9 kB view raw
1/***************************************************************************** 2 * pce * 3 *****************************************************************************/ 4 5/***************************************************************************** 6 * File name: src/arch/macplus/adb_mouse.h * 7 * Created: 2010-11-04 by Hampa Hug <hampa@hampa.ch> * 8 * Copyright: (C) 2010-2011 Hampa Hug <hampa@hampa.ch> * 9 *****************************************************************************/ 10 11/***************************************************************************** 12 * This program is free software. You can redistribute it and / or modify it * 13 * under the terms of the GNU General Public License version 2 as published * 14 * by the Free Software Foundation. * 15 * * 16 * This program is distributed in the hope that it will be useful, but * 17 * WITHOUT ANY WARRANTY, without even the implied warranty of * 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General * 19 * Public License for more details. * 20 *****************************************************************************/ 21 22 23#ifndef PCE_MACPLUS_ADB_MOUSE_H 24#define PCE_MACPLUS_ADB_MOUSE_H 1 25 26 27#include "adb.h" 28 29 30typedef struct { 31 adb_dev_t dev; 32 33 char talking; 34 35 int change; 36 37 unsigned button; 38 int dx; 39 int dy; 40 41 unsigned talk_button; 42 int talk_dx; 43 int talk_dy; 44} adb_mouse_t; 45 46 47void adb_mouse_move (adb_mouse_t *am, unsigned button, int dx, int dy); 48 49void adb_mouse_init (adb_mouse_t *am); 50 51adb_mouse_t *adb_mouse_new (void); 52 53 54#endif