Mercurial > sdl-ios-xcode
comparison src/video/cybergfx/SDL_amigamouse.c @ 1668:4da1ee79c9af SDL-1.3
more tweaking indent options
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 29 May 2006 04:04:35 +0000 |
parents | 782fd950bd46 |
children |
comparison
equal
deleted
inserted
replaced
1667:1fddae038bc8 | 1668:4da1ee79c9af |
---|---|
30 /* The implementation dependent data for the window manager cursor */ | 30 /* The implementation dependent data for the window manager cursor */ |
31 | 31 |
32 typedef void *WMCursor; | 32 typedef void *WMCursor; |
33 | 33 |
34 void | 34 void |
35 amiga_FreeWMCursor (_THIS, WMcursor * cursor) | 35 amiga_FreeWMCursor(_THIS, WMcursor * cursor) |
36 { | 36 { |
37 } | 37 } |
38 | 38 |
39 WMcursor * | 39 WMcursor * |
40 amiga_CreateWMCursor (_THIS, | 40 amiga_CreateWMCursor(_THIS, |
41 Uint8 * data, Uint8 * mask, int w, int h, int hot_x, | 41 Uint8 * data, Uint8 * mask, int w, int h, int hot_x, |
42 int hot_y) | 42 int hot_y) |
43 { | 43 { |
44 return (WMcursor *) 1; // Amiga has an Hardware cursor, so it's ok to return something unuseful but true | 44 return (WMcursor *) 1; // Amiga has an Hardware cursor, so it's ok to return something unuseful but true |
45 } | 45 } |
46 | 46 |
47 int | 47 int |
48 amiga_ShowWMCursor (_THIS, WMcursor * cursor) | 48 amiga_ShowWMCursor(_THIS, WMcursor * cursor) |
49 { | 49 { |
50 /* Don't do anything if the display is gone */ | 50 /* Don't do anything if the display is gone */ |
51 if (SDL_Display == NULL) { | 51 if (SDL_Display == NULL) { |
52 return (0); | 52 return (0); |
53 } | 53 } |
54 | 54 |
55 /* Set the Amiga prefs cursor cursor, or blank if cursor is NULL */ | 55 /* Set the Amiga prefs cursor cursor, or blank if cursor is NULL */ |
56 | 56 |
57 if (SDL_Window) { | 57 if (SDL_Window) { |
58 SDL_Lock_EventThread (); | 58 SDL_Lock_EventThread(); |
59 if (cursor == NULL) { | 59 if (cursor == NULL) { |
60 if (SDL_BlankCursor != NULL) { | 60 if (SDL_BlankCursor != NULL) { |
61 // Hide cursor HERE | 61 // Hide cursor HERE |
62 SetPointer (SDL_Window, (UWORD *) SDL_BlankCursor, 1, 1, | 62 SetPointer(SDL_Window, (UWORD *) SDL_BlankCursor, 1, 1, 0, 0); |
63 0, 0); | |
64 } | 63 } |
65 } else { | 64 } else { |
66 // Show cursor | 65 // Show cursor |
67 ClearPointer (SDL_Window); | 66 ClearPointer(SDL_Window); |
68 } | 67 } |
69 SDL_Unlock_EventThread (); | 68 SDL_Unlock_EventThread(); |
70 } | 69 } |
71 return (1); | 70 return (1); |
72 } | 71 } |
73 | 72 |
74 void | 73 void |
75 amiga_WarpWMCursor (_THIS, Uint16 x, Uint16 y) | 74 amiga_WarpWMCursor(_THIS, Uint16 x, Uint16 y) |
76 { | 75 { |
77 /* FIXME: Not implemented */ | 76 /* FIXME: Not implemented */ |
78 } | 77 } |
79 | 78 |
80 /* Check to see if we need to enter or leave mouse relative mode */ | 79 /* Check to see if we need to enter or leave mouse relative mode */ |
81 void | 80 void |
82 amiga_CheckMouseMode (_THIS) | 81 amiga_CheckMouseMode(_THIS) |
83 { | 82 { |
84 } | 83 } |
85 | 84 |
86 /* vi: set ts=4 sw=4 expandtab: */ | 85 /* vi: set ts=4 sw=4 expandtab: */ |