Initial commit. Linux backend is fully functional.
[umd.git] / src / umd.h
blob2000d62191e3a43edac35fa44a930304f0dbc820
1 /*************************************************************************
2 Copyright (C) 2009 Matthew Thompson <chameleonator@gmail.com>
4 This file is part of libumd.
6 libumd is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
11 libumd is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with libumd. If not, see <http://www.gnu.org/licenses/>.
18 *************************************************************************/
20 #ifndef LIBUMD_H__
21 #define LIBUMD_H__
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
27 #define UMD_LEFT 0x01
28 #define UMD_RIGHT 0x02
29 #define UMD_MIDDLE 0x04
31 int UMD_Init();
32 int UMD_Quit();
34 const char *UMD_GetError();
36 int UMD_Warp(int x, int y);
37 int UMD_Move(int x, int y);
39 int UMD_Click(int button);
40 int UMD_ClickAt(int button, int x, int y);
42 #ifdef __cplusplus
44 #endif
46 #endif