Mercurial > sdl-ios-xcode
comparison src/video/qtopia/SDL_sysmouse.cc @ 1662:782fd950bd46 SDL-1.3
Revamp of the video system in progress - adding support for multiple displays, multiple windows, and a full video mode selection API.
WARNING: None of the video drivers have been updated for the new API yet! The API is still under design and very fluid.
The code is now run through a consistent indent format:
indent -i4 -nut -nsc -br -ce
The headers are being converted to automatically generate doxygen documentation.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sun, 28 May 2006 13:04:16 +0000 |
parents | 376665398b25 |
children | 4da1ee79c9af |
comparison
equal
deleted
inserted
replaced
1661:281d3f4870e5 | 1662:782fd950bd46 |
---|---|
21 */ | 21 */ |
22 #include "SDL_config.h" | 22 #include "SDL_config.h" |
23 | 23 |
24 #include "SDL_QWin.h" | 24 #include "SDL_QWin.h" |
25 | 25 |
26 extern "C" { | 26 extern "C" |
27 { | |
27 | 28 |
28 #include "SDL_sysmouse_c.h" | 29 #include "SDL_sysmouse_c.h" |
29 | 30 |
30 /* The implementation dependent data for the window manager cursor */ | 31 /* The implementation dependent data for the window manager cursor */ |
31 struct WMcursor { | 32 struct WMcursor |
32 char *bits; | 33 { |
33 }; | 34 char *bits; |
34 WMcursor *QT_CreateWMCursor(_THIS, | 35 }; |
35 Uint8 *data, Uint8 *mask, int w, int h, int hot_x, int hot_y) | 36 WMcursor *QT_CreateWMCursor (_THIS, |
36 { | 37 Uint8 * data, Uint8 * mask, int w, int h, |
37 static WMcursor dummy; | 38 int hot_x, int hot_y) |
38 dummy.bits = 0; | 39 { |
39 return &dummy; | 40 static WMcursor dummy; |
40 } | 41 dummy.bits = 0; |
42 return &dummy; | |
43 } | |
41 | 44 |
42 int QT_ShowWMCursor(_THIS, WMcursor *cursor) | 45 int QT_ShowWMCursor (_THIS, WMcursor * cursor) |
43 { | 46 { |
44 return 1; | 47 return 1; |
45 } | 48 } |
46 | 49 |
47 void QT_FreeWMCursor(_THIS, WMcursor *cursor) | 50 void QT_FreeWMCursor (_THIS, WMcursor * cursor) |
48 { | 51 { |
49 } | 52 } |
50 | 53 |
51 void QT_WarpWMCursor(_THIS, Uint16 x, Uint16 y) | 54 void QT_WarpWMCursor (_THIS, Uint16 x, Uint16 y) |
52 { | 55 { |
53 SDL_Win->setMousePos(QPoint(x, y)); | 56 SDL_Win->setMousePos (QPoint (x, y)); |
54 } | 57 } |
55 | 58 |
56 }; /* Extern C */ | 59 }; /* Extern C */ |
60 | |
61 /* vi: set ts=4 sw=4 expandtab: */ |