slouken@4503: /* slouken@5535: Simple DirectMedia Layer slouken@6138: Copyright (C) 1997-2012 Sam Lantinga slouken@4503: slouken@5535: This software is provided 'as-is', without any express or implied slouken@5535: warranty. In no event will the authors be held liable for any damages slouken@5535: arising from the use of this software. slouken@4503: slouken@5535: Permission is granted to anyone to use this software for any purpose, slouken@5535: including commercial applications, and to alter it and redistribute it slouken@5535: freely, subject to the following restrictions: slouken@4503: slouken@5535: 1. The origin of this software must not be misrepresented; you must not slouken@5535: claim that you wrote the original software. If you use this software slouken@5535: in a product, an acknowledgment in the product documentation would be slouken@5535: appreciated but is not required. slouken@5535: 2. Altered source versions must be plainly marked as such, and must not be slouken@5535: misrepresented as being the original software. slouken@5535: 3. This notice may not be removed or altered from any source distribution. slouken@4503: */ slouken@4503: #include "SDL_config.h" slouken@4503: slouken@4503: /* Clipboard event handling code for SDL */ slouken@4503: slouken@4503: #include "SDL_events.h" slouken@4503: #include "SDL_events_c.h" slouken@4503: #include "SDL_clipboardevents_c.h" slouken@4503: slouken@4503: slouken@4503: int slouken@4506: SDL_SendClipboardUpdate(void) slouken@4503: { slouken@4503: int posted; slouken@4503: slouken@4503: /* Post the event, if desired */ slouken@4503: posted = 0; slouken@4503: if (SDL_GetEventState(SDL_CLIPBOARDUPDATE) == SDL_ENABLE) { slouken@4503: SDL_Event event; slouken@4503: event.type = SDL_CLIPBOARDUPDATE; slouken@4503: slouken@4503: posted = (SDL_PushEvent(&event) > 0); slouken@4503: } slouken@4503: return (posted); slouken@4503: } slouken@4503: slouken@4503: /* vi: set ts=4 sw=4 expandtab: */