diff options
Diffstat (limited to 'src/ui/util.c')
-rw-r--r-- | src/ui/util.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ui/util.c b/src/ui/util.c index dfe364a5..120be3be 100644 --- a/src/ui/util.c +++ b/src/ui/util.c | |||
@@ -36,6 +36,10 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ | |||
36 | #include <the_Foundation/math.h> | 36 | #include <the_Foundation/math.h> |
37 | #include <the_Foundation/path.h> | 37 | #include <the_Foundation/path.h> |
38 | 38 | ||
39 | iBool isCommand_SDLEvent(const SDL_Event *d) { | ||
40 | return d->type == SDL_USEREVENT && d->user.code == command_UserEventCode; | ||
41 | } | ||
42 | |||
39 | iBool isCommand_UserEvent(const SDL_Event *d, const char *cmd) { | 43 | iBool isCommand_UserEvent(const SDL_Event *d, const char *cmd) { |
40 | return d->type == SDL_USEREVENT && d->user.code == command_UserEventCode && | 44 | return d->type == SDL_USEREVENT && d->user.code == command_UserEventCode && |
41 | equal_Command(d->user.data1, cmd); | 45 | equal_Command(d->user.data1, cmd); |