|
Size: 1052
Comment: update content - w/ Matt, Sam (in progress)
|
Size: 925
Comment: update content - w/ Matt, Sam (in progress)
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 6: | Line 6: |
| Use this function to remove an event watch function added with [[SDL_AddEventWatch]](). | Use this function to remove an event watch callback added with [[SDL_AddEventWatch]](). |
| Line 17: | Line 17: |
| ||'''filter'''||the function to stop calling; see [[#Remarks|Remarks]] for details|| ||'''userdata'''||^a pointer to the event queue to stop watching^|| |
||'''filter'''||the function originally passed to [[SDL_AddEventWatch]](); see [[#Remarks|Remarks]] for details|| ||'''userdata'''||the pointer originally passed to [[SDL_AddEventWatch]]()|| |
| Line 26: | Line 26: |
| <<Include(SDL_SetEventFilter, , , from="Start Include here.", to="##End Include here")>> .where `YourEventFilter` is the name of your function, `userdata` is is what was passed as '''userdata''' to [[SDL_DelEventWatch]]() and `event` is the event that triggered the callback. |
This function takes the same input as [[SDL_AddEventWatch]]() to identify and delete the corresponding callback. |
DRAFT |
SDL_DelEventWatch
Use this function to remove an event watch callback added with SDL_AddEventWatch().
Syntax
void SDL_DelEventWatch(SDL_EventFilter filter,
void* userdata)
Function Parameters
filter |
the function originally passed to SDL_AddEventWatch(); see Remarks for details |
userdata |
the pointer originally passed to SDL_AddEventWatch() |
Code Examples
You can add your code example here
Remarks
This function takes the same input as SDL_AddEventWatch() to identify and delete the corresponding callback.
