Mercurial > sdl-ios-xcode
comparison src/video/cybergfx/SDL_amigamouse.c @ 1895:c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 10 Jul 2006 21:04:37 +0000 |
parents | d910939febfa |
children |
comparison
equal
deleted
inserted
replaced
1894:c69cee13dd76 | 1895:c121d94672cb |
---|---|
27 #include "SDL_amigamouse_c.h" | 27 #include "SDL_amigamouse_c.h" |
28 | 28 |
29 | 29 |
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 amiga_FreeWMCursor(_THIS, WMcursor *cursor) | 34 void |
35 amiga_FreeWMCursor(_THIS, WMcursor * cursor) | |
35 { | 36 { |
36 } | 37 } |
37 | 38 |
38 WMcursor *amiga_CreateWMCursor(_THIS, | 39 WMcursor * |
39 Uint8 *data, Uint8 *mask, int w, int h, int hot_x, int hot_y) | 40 amiga_CreateWMCursor(_THIS, |
41 Uint8 * data, Uint8 * mask, int w, int h, int hot_x, | |
42 int hot_y) | |
40 { | 43 { |
41 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 |
42 } | 45 } |
43 | 46 |
44 int amiga_ShowWMCursor(_THIS, WMcursor *cursor) | 47 int |
48 amiga_ShowWMCursor(_THIS, WMcursor * cursor) | |
45 { | 49 { |
46 /* Don't do anything if the display is gone */ | 50 /* Don't do anything if the display is gone */ |
47 if ( SDL_Display == NULL) { | 51 if (SDL_Display == NULL) { |
48 return(0); | 52 return (0); |
49 } | 53 } |
50 | 54 |
51 /* 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 */ |
52 | 56 |
53 if ( SDL_Window ) { | 57 if (SDL_Window) { |
54 SDL_Lock_EventThread(); | 58 SDL_Lock_EventThread(); |
55 if ( cursor == NULL ) { | 59 if (cursor == NULL) { |
56 if ( SDL_BlankCursor != NULL ) { | 60 if (SDL_BlankCursor != NULL) { |
57 // Hide cursor HERE | 61 // Hide cursor HERE |
58 SetPointer(SDL_Window,(UWORD *)SDL_BlankCursor,1,1,0,0); | 62 SetPointer(SDL_Window, (UWORD *) SDL_BlankCursor, 1, 1, 0, 0); |
59 } | 63 } |
60 } else { | 64 } else { |
61 // Show cursor | 65 // Show cursor |
62 ClearPointer(SDL_Window); | 66 ClearPointer(SDL_Window); |
63 } | 67 } |
64 SDL_Unlock_EventThread(); | 68 SDL_Unlock_EventThread(); |
65 } | 69 } |
66 return(1); | 70 return (1); |
67 } | 71 } |
68 | 72 |
69 void amiga_WarpWMCursor(_THIS, Uint16 x, Uint16 y) | 73 void |
74 amiga_WarpWMCursor(_THIS, Uint16 x, Uint16 y) | |
70 { | 75 { |
71 /* FIXME: Not implemented */ | 76 /* FIXME: Not implemented */ |
72 } | 77 } |
73 | 78 |
74 /* 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 */ |
75 void amiga_CheckMouseMode(_THIS) | 80 void |
81 amiga_CheckMouseMode(_THIS) | |
76 { | 82 { |
77 } | 83 } |
84 | |
85 /* vi: set ts=4 sw=4 expandtab: */ |