From b030bf671d4d40ba1fd32c38603999d113b4f6d4 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Fri, 10 May 2019 21:51:09 -0700 Subject: *: drop vestigial cruft breaking win32 builds Just some unused schismtracker junk, there really shouldn't be any SDL dependency at all but I haven't gone through and exhaustively cleared all that out. --- src/sys/macosx/osdefs.c | 25 ------------------------- 1 file changed, 25 deletions(-) (limited to 'src/sys/macosx/osdefs.c') diff --git a/src/sys/macosx/osdefs.c b/src/sys/macosx/osdefs.c index 57fd832..8a07e36 100644 --- a/src/sys/macosx/osdefs.c +++ b/src/sys/macosx/osdefs.c @@ -23,32 +23,7 @@ #include "headers.h" #include "osdefs.h" -#include "event.h" #include "song.h" const char *osname = "macosx"; - -int macosx_sdlevent(SDL_Event *event) -{ - if (event->type == SDL_KEYDOWN || event->type == SDL_KEYUP) { - if (event->key.keysym.sym == 0) { - switch (event->key.keysym.scancode) { - case 106: // mac F16 key - event->key.keysym.sym = SDLK_PRINT; - event->key.keysym.mod = KMOD_CTRL; - return 1; - case 234: // XXX what key is this? - if (event->type == SDL_KEYDOWN) - song_set_current_order(song_get_current_order() - 1); - return 0; - case 233: // XXX what key is this? - if (event->type == SDL_KEYUP) - song_set_current_order(song_get_current_order() + 1); - return 0; - }; - } - } - return 1; -} - -- cgit v1.2.3