Tests actually work now (they need SDL to compile)
[umd.git] / src / umd.h
blobf1fa5fb4fd234d80ced3087f1bae1c4e4187bb89
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();
33 int UMD_Quit();
35 const char *UMD_GetError();
38 int UMD_Warp(int x, int y);
40 int UMD_Move(int x, int y);
43 int UMD_Click(int button, int state);
45 int UMD_ClickAt(int button, int state, int x, int y);
48 int UMD_SingleClick(int button);
50 int UMD_SingleClickAt(int button, int x, int y);
52 #ifdef __cplusplus
54 #endif
56 #endif