slouken@4503: /* slouken@4503: SDL - Simple DirectMedia Layer slouken@4503: Copyright (C) 1997-2010 Sam Lantinga slouken@4503: slouken@4503: This library is free software; you can redistribute it and/or slouken@4503: modify it under the terms of the GNU Lesser General Public slouken@4503: License as published by the Free Software Foundation; either slouken@4503: version 2.1 of the License, or (at your option) any later version. slouken@4503: slouken@4503: This library is distributed in the hope that it will be useful, slouken@4503: but WITHOUT ANY WARRANTY; without even the implied warranty of slouken@4503: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU slouken@4503: Lesser General Public License for more details. slouken@4503: slouken@4503: You should have received a copy of the GNU Lesser General Public slouken@4503: License along with this library; if not, write to the Free Software slouken@4503: Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA slouken@4503: slouken@4503: Sam Lantinga slouken@4503: slouken@libsdl.org 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: */