📄 eventfunctions.html
字号:
<HTML><HEAD><TITLE>Event Functions.</TITLE><METANAME="GENERATOR"CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+"><LINKREL="HOME"TITLE="SDL Library Documentation"HREF="index.html"><LINKREL="UP"TITLE="Events"HREF="event.html"><LINKREL="PREVIOUS"TITLE="SDLKey"HREF="sdlkey.html"><LINKREL="NEXT"TITLE="SDL_PumpEvents"HREF="sdlpumpevents.html"></HEAD><BODYCLASS="SECT1"BGCOLOR="#FFF8DC"TEXT="#000000"LINK="#0000ee"VLINK="#551a8b"ALINK="#ff0000"><DIVCLASS="NAVHEADER"><TABLESUMMARY="Header navigation table"WIDTH="100%"BORDER="0"CELLPADDING="0"CELLSPACING="0"><TR><THCOLSPAN="3"ALIGN="center">SDL Library Documentation</TH></TR><TR><TDWIDTH="10%"ALIGN="left"VALIGN="bottom"><AHREF="sdlkey.html"ACCESSKEY="P">Prev</A></TD><TDWIDTH="80%"ALIGN="center"VALIGN="bottom">Chapter 8. Events</TD><TDWIDTH="10%"ALIGN="right"VALIGN="bottom"><AHREF="sdlpumpevents.html"ACCESSKEY="N">Next</A></TD></TR></TABLE><HRALIGN="LEFT"WIDTH="100%"></DIV><DIVCLASS="SECT1"><H1CLASS="SECT1"><ANAME="EVENTFUNCTIONS"></A>Event Functions.</H1><DIVCLASS="TOC"><DL><DT><B>Table of Contents</B></DT><DT><AHREF="sdlpumpevents.html">SDL_PumpEvents</A> -- Pumps the event loop, gathering events from the input devices.</DT><DT><AHREF="sdlpeepevents.html">SDL_PeepEvents</A> -- Checks the event queue for messages and optionally returns them.</DT><DT><AHREF="sdlpollevent.html">SDL_PollEvent</A> -- Polls for currently pending events.</DT><DT><AHREF="sdlwaitevent.html">SDL_WaitEvent</A> -- Waits indefinitely for the next available event.</DT><DT><AHREF="sdlpushevent.html">SDL_PushEvent</A> -- Pushes an event onto the event queue</DT><DT><AHREF="sdlseteventfilter.html">SDL_SetEventFilter</A> -- Sets up a filter to process all events before they are posted to the event queue.</DT><DT><AHREF="sdlgeteventfilter.html">SDL_GetEventFilter</A> -- Retrieves a pointer to he event filter</DT><DT><AHREF="sdleventstate.html">SDL_EventState</A> -- This function allows you to set the state of processing certain events.</DT><DT><AHREF="sdlgetkeystate.html">SDL_GetKeyState</A> -- Get a snapshot of the current keyboard state</DT><DT><AHREF="sdlgetmodstate.html">SDL_GetModState</A> -- Get the state of modifier keys.</DT><DT><AHREF="sdlsetmodstate.html">SDL_SetModState</A> -- Set the current key modifier state</DT><DT><AHREF="sdlgetkeyname.html">SDL_GetKeyName</A> -- Get the name of an SDL virtual keysym</DT><DT><AHREF="sdlenableunicode.html">SDL_EnableUNICODE</A> -- Enable UNICODE translation</DT><DT><AHREF="sdlenablekeyrepeat.html">SDL_EnableKeyRepeat</A> -- Set keyboard repeat rate.</DT><DT><AHREF="sdlgetmousestate.html">SDL_GetMouseState</A> -- Retrieve the current state of the mouse</DT><DT><AHREF="sdlgetrelativemousestate.html">SDL_GetRelativeMouseState</A> -- Retrieve the current state of the mouse</DT><DT><AHREF="sdlgetappstate.html">SDL_GetAppState</A> -- Get the state of the application</DT><DT><AHREF="sdljoystickeventstate.html">SDL_JoystickEventState</A> -- Enable/disable joystick event polling</DT></DL></DIV><DIVCLASS="INFORMALTABLE"><ANAME="AEN5312"></A><P></P><TABLEBORDER="0"CLASS="CALSTABLE"><TBODY><TR><TDALIGN="LEFT"VALIGN="TOP"><AHREF="sdlpumpevents.html">SDL_PumpEvents</A></TD><TDALIGN="LEFT"VALIGN="TOP">Pumps the event loop, gathering events from the input devices</TD></TR><TR><TDALIGN="LEFT"VALIGN="TOP"><AHREF="sdlpeepevents.html">SDL_PeepEvents</A></TD><TDALIGN="LEFT"VALIGN="TOP">Checks the event queue for messages and optionally returns them</TD></TR><TR><TDALIGN="LEFT"VALIGN="TOP"><AHREF="sdlpollevent.html">SDL_PollEvent</A></TD><TDALIGN="LEFT"VALIGN="TOP">Polls for currently pending events</TD></TR><TR><TDALIGN="LEFT"VALIGN="TOP"><AHREF="sdlwaitevent.html">SDL_WaitEvent</A></TD><TDALIGN="LEFT"VALIGN="TOP">Waits indefinitely for the next available event</TD></TR><TR><TDALIGN="LEFT"VALIGN="TOP"><AHREF="sdlpushevent.html">SDL_PushEvent</A></TD><TDALIGN="LEFT"VALIGN="TOP">Pushes an event onto the event queue</TD></TR><TR><TDALIGN="LEFT"VALIGN="TOP"><AHREF="sdlseteventfilter.html">SDL_SetEventFilter</A></TD><TDALIGN="LEFT"VALIGN="TOP">Sets up a filter to process all events</TD></TR><TR><TDALIGN="LEFT"VALIGN="TOP"><AHREF="sdleventstate.html">SDL_EventState</A></TD><TDALIGN="LEFT"VALIGN="TOP">Allows you to set the state of processing certain events</TD></TR><TR><TDALIGN="LEFT"VALIGN="TOP"><AHREF="sdlgetkeystate.html">SDL_GetKeyState</A></TD><TDALIGN="LEFT"VALIGN="TOP">Get a snapshot of the current keyboard state</TD></TR><TR><TDALIGN="LEFT"VALIGN="TOP"><AHREF="sdlgetmodstate.html">SDL_GetModState</A></TD><TDALIGN="LEFT"VALIGN="TOP">Get the state of modifier keys</TD></TR><TR><TDALIGN="LEFT"VALIGN="TOP"><AHREF="sdlsetmodstate.html">SDL_SetModState</A></TD><TDALIGN="LEFT"VALIGN="TOP">Set the state of modifier keys</TD></TR><TR><TDALIGN="LEFT"VALIGN="TOP"><AHREF="sdlgetkeyname.html">SDL_GetKeyName</A></TD><TDALIGN="LEFT"VALIGN="TOP">Get the name of an SDL virtual keysym</TD></TR><TR><TDALIGN="LEFT"VALIGN="TOP"><AHREF="sdlenableunicode.html">SDL_EnableUNICODE</A></TD><TDALIGN="LEFT"VALIGN="TOP">Enable UNICODE translation</TD></TR><TR><TDALIGN="LEFT"VALIGN="TOP"><AHREF="sdlenablekeyrepeat.html">SDL_EnableKeyRepeat</A></TD><TDALIGN="LEFT"VALIGN="TOP">Set keyboard repeat rate</TD></TR><TR><TDALIGN="LEFT"VALIGN="TOP"><AHREF="sdlgetmousestate.html">SDL_GetMouseState</A></TD><TDALIGN="LEFT"VALIGN="TOP">Retrieve the current state of the mouse</TD></TR><TR><TDALIGN="LEFT"VALIGN="TOP"><AHREF="sdlgetrelativemousestate.html">SDL_GetRelativeMouseState</A></TD><TDALIGN="LEFT"VALIGN="TOP">Retrieve the current state of the mouse</TD></TR><TR><TDALIGN="LEFT"VALIGN="TOP"><AHREF="sdlgetappstate.html">SDL_GetAppState</A></TD><TDALIGN="LEFT"VALIGN="TOP">Get the state of the application</TD></TR><TR><TDALIGN="LEFT"VALIGN="TOP"><AHREF="sdljoystickeventstate.html">SDL_JoystickEventState</A></TD><TDALIGN="LEFT"VALIGN="TOP">Enable/disable joystick event polling</TD></TR></TBODY></TABLE><P></P></DIV></DIV><DIVCLASS="NAVFOOTER"><HRALIGN="LEFT"WIDTH="100%"><TABLESUMMARY="Footer navigation table"WIDTH="100%"BORDER="0"CELLPADDING="0"CELLSPACING="0"><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top"><AHREF="sdlkey.html"ACCESSKEY="P">Prev</A></TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="index.html"ACCESSKEY="H">Home</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top"><AHREF="sdlpumpevents.html"ACCESSKEY="N">Next</A></TD></TR><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top">SDLKey</TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="event.html"ACCESSKEY="U">Up</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top">SDL_PumpEvents</TD></TR></TABLE></DIV></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -