1 |
/* |
2 |
* PearPC |
3 |
* sysmouse.cc - mouse access functions for BeOS |
4 |
* |
5 |
* Copyright (C) 1999-2004 Stefan Weyergraf (stefan@weyergraf.de) |
6 |
* Copyright (C) 1999-2004 Sebastian Biallas (sb@biallas.net) |
7 |
* Copyright (C) 2004 Francois Revol (revol@free.fr) |
8 |
* |
9 |
* This program is free software; you can redistribute it and/or modify |
10 |
* it under the terms of the GNU General Public License version 2 as |
11 |
* published by the Free Software Foundation. |
12 |
* |
13 |
* This program is distributed in the hope that it will be useful, |
14 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
15 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
16 |
* GNU General Public License for more details. |
17 |
* |
18 |
* You should have received a copy of the GNU General Public License |
19 |
* along with this program; if not, write to the Free Software |
20 |
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
21 |
*/ |
22 |
|
23 |
#include <cstdlib> |
24 |
|
25 |
#include "system/display.h" |
26 |
#include "system/mouse.h" |
27 |
|
28 |
#define DPRINTF(a...) |
29 |
//#define DPRINTF(a...) ht_printf(a) |
30 |
|
31 |
class BeOSSystemMouse: public SystemMouse { |
32 |
public: |
33 |
|
34 |
virtual bool handleEvent(const SystemEvent &ev) |
35 |
{ |
36 |
return SystemMouse::handleEvent(ev); |
37 |
} |
38 |
}; |
39 |
|
40 |
SystemMouse *allocSystemMouse() |
41 |
{ |
42 |
if (gMouse) return NULL; |
43 |
return new BeOSSystemMouse(); |
44 |
} |