Navigation Menu

Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Latest commit

 

History

History
61 lines (48 loc) · 1.65 KB

SDL_sysmouse.cc

File metadata and controls

61 lines (48 loc) · 1.65 KB
 
May 19, 2002
May 19, 2002
1
2
/*
SDL - Simple DirectMedia Layer
Feb 1, 2006
Feb 1, 2006
3
Copyright (C) 1997-2006 Sam Lantinga
May 19, 2002
May 19, 2002
4
5
This library is free software; you can redistribute it and/or
Feb 1, 2006
Feb 1, 2006
6
modify it under the terms of the GNU Lesser General Public
May 19, 2002
May 19, 2002
7
License as published by the Free Software Foundation; either
Feb 1, 2006
Feb 1, 2006
8
version 2.1 of the License, or (at your option) any later version.
May 19, 2002
May 19, 2002
9
10
11
12
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Feb 1, 2006
Feb 1, 2006
13
Lesser General Public License for more details.
May 19, 2002
May 19, 2002
14
Feb 1, 2006
Feb 1, 2006
15
16
17
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
May 19, 2002
May 19, 2002
18
19
20
21
Sam Lantinga
slouken@libsdl.org
*/
Feb 21, 2006
Feb 21, 2006
22
#include "SDL_config.h"
May 19, 2002
May 19, 2002
23
24
25
#include "SDL_QWin.h"
May 28, 2006
May 28, 2006
26
27
extern "C"
{
May 19, 2002
May 19, 2002
28
29
30
31
#include "SDL_sysmouse_c.h"
/* The implementation dependent data for the window manager cursor */
May 28, 2006
May 28, 2006
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
struct WMcursor
{
char *bits;
};
WMcursor *QT_CreateWMCursor (_THIS,
Uint8 * data, Uint8 * mask, int w, int h,
int hot_x, int hot_y)
{
static WMcursor dummy;
dummy.bits = 0;
return &dummy;
}
int QT_ShowWMCursor (_THIS, WMcursor * cursor)
{
return 1;
}
void QT_FreeWMCursor (_THIS, WMcursor * cursor)
{
}
void QT_WarpWMCursor (_THIS, Uint16 x, Uint16 y)
{
SDL_Win->setMousePos (QPoint (x, y));
}
}; /* Extern C */
/* vi: set ts=4 sw=4 expandtab: */